Skip to content

Commit b9ccde3

Browse files
committed
Linting fixes -- mainly enforcing 4-space indentation instead of 2-space indentiation
1 parent 400d705 commit b9ccde3

File tree

14 files changed

+2406
-2406
lines changed

14 files changed

+2406
-2406
lines changed

csharp/runner/SnippetRunner/Program.cs

Lines changed: 498 additions & 498 deletions
Large diffs are not rendered by default.

csharp/snippets/deleting/DeleteViaFutures/Program.cs

Lines changed: 210 additions & 210 deletions
Large diffs are not rendered by default.

csharp/snippets/loading/LoadRecords/Program.cs

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
string? settings = Environment.GetEnvironmentVariable("SENZING_ENGINE_CONFIGURATION_JSON");
1212
if (settings == null)
1313
{
14-
Console.Error.WriteLine("Unable to get settings.");
15-
throw new ArgumentException("Unable to get settings");
14+
Console.Error.WriteLine("Unable to get settings.");
15+
throw new ArgumentException("Unable to get settings");
1616
}
1717

1818
// create a descriptive instance name (can be anything)
@@ -28,44 +28,44 @@
2828

2929
try
3030
{
31-
// get the engine from the environment
32-
SzEngine engine = env.GetEngine();
31+
// get the engine from the environment
32+
SzEngine engine = env.GetEngine();
3333

34-
// loop through the example records and add them to the repository
35-
foreach (KeyValuePair<(string, string), string> pair in GetRecords())
36-
{
37-
(string dataSourceCode, string recordID) = pair.Key;
38-
string recordDefinition = pair.Value;
34+
// loop through the example records and add them to the repository
35+
foreach (KeyValuePair<(string, string), string> pair in GetRecords())
36+
{
37+
(string dataSourceCode, string recordID) = pair.Key;
38+
string recordDefinition = pair.Value;
3939

40-
// call the addRecord() function with no flags
41-
engine.AddRecord(dataSourceCode, recordID, recordDefinition, SzNoFlags);
40+
// call the addRecord() function with no flags
41+
engine.AddRecord(dataSourceCode, recordID, recordDefinition, SzNoFlags);
4242

43-
Console.WriteLine("Record " + recordID + " added");
44-
Console.Out.Flush();
45-
}
43+
Console.WriteLine("Record " + recordID + " added");
44+
Console.Out.Flush();
45+
}
4646

4747
}
4848
catch (SzException e)
4949
{
50-
// handle any exception that may have occurred
51-
Console.Error.WriteLine("Senzing Error Message : " + e.Message);
52-
Console.Error.WriteLine("Senzing Error Code : " + e.ErrorCode);
53-
Console.Error.WriteLine(e);
54-
throw;
50+
// handle any exception that may have occurred
51+
Console.Error.WriteLine("Senzing Error Message : " + e.Message);
52+
Console.Error.WriteLine("Senzing Error Code : " + e.ErrorCode);
53+
Console.Error.WriteLine(e);
54+
throw;
5555

5656
}
5757
catch (Exception e)
5858
{
59-
Console.Error.WriteLine();
60-
Console.Error.WriteLine("*** Terminated due to critical error ***");
61-
Console.Error.WriteLine(e);
62-
Console.Error.Flush();
63-
throw;
59+
Console.Error.WriteLine();
60+
Console.Error.WriteLine("*** Terminated due to critical error ***");
61+
Console.Error.WriteLine(e);
62+
Console.Error.Flush();
63+
throw;
6464
}
6565
finally
6666
{
67-
// IMPORTANT: make sure to destroy the environment
68-
env.Destroy();
67+
// IMPORTANT: make sure to destroy the environment
68+
env.Destroy();
6969
}
7070

7171
/// <summary>
@@ -78,12 +78,12 @@
7878
/// </returns>
7979
static IDictionary<(string, string), string> GetRecords()
8080
{
81-
IDictionary<(string, string), string> records
82-
= new SortedDictionary<(string, string), string>();
81+
IDictionary<(string, string), string> records
82+
= new SortedDictionary<(string, string), string>();
8383

84-
records.Add(
85-
("TEST", "1001"),
86-
"""
84+
records.Add(
85+
("TEST", "1001"),
86+
"""
8787
{
8888
"DATA_SOURCE": "TEST",
8989
"RECORD_ID": "1001",
@@ -99,9 +99,9 @@
9999
}
100100
""");
101101

102-
records.Add(
103-
("TEST", "1002"),
104-
"""
102+
records.Add(
103+
("TEST", "1002"),
104+
"""
105105
{
106106
"DATA_SOURCE": "TEST",
107107
"RECORD_ID": "1002",
@@ -120,9 +120,9 @@
120120
}
121121
""");
122122

123-
records.Add(
124-
("TEST", "1003"),
125-
"""
123+
records.Add(
124+
("TEST", "1003"),
125+
"""
126126
{
127127
"DATA_SOURCE": "TEST",
128128
"RECORD_ID": "1003",
@@ -135,9 +135,9 @@
135135
}
136136
""");
137137

138-
records.Add(
139-
("TEST", "1004"),
140-
"""
138+
records.Add(
139+
("TEST", "1004"),
140+
"""
141141
{
142142
"DATA_SOURCE": "TEST",
143143
"RECORD_ID": "1004",
@@ -153,9 +153,9 @@
153153
}
154154
""");
155155

156-
records.Add(
157-
("TEST", "1005"),
158-
"""
156+
records.Add(
157+
("TEST", "1005"),
158+
"""
159159
{
160160
"DATA_SOURCE": "TEST",
161161
"RECORD_ID": "1005",
@@ -173,5 +173,5 @@
173173
}
174174
""");
175175

176-
return records;
176+
return records;
177177
}

0 commit comments

Comments
 (0)