Skip to content

Commit 20f33b6

Browse files
committed
force SA1413
1 parent 6b0de10 commit 20f33b6

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

kubernetes-client.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<Rule Id="SA1405" Action="Warning" />
8989

9090
<!-- The last statement in a multi-line C# initializer or list is missing a trailing comma. https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1413.md -->
91-
<Rule Id="SA1413" Action="Warning" />
91+
<Rule Id="SA1413" Action="Error" />
9292

9393
<!-- The name of a C# element does not begin with an upper-case letter. https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1300.md -->
9494
<Rule Id="SA1300" Action="None" />

src/KubernetesClient/Authentication/GcpTokenProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ private async Task RefreshToken()
4141
UseShellExecute = false,
4242
CreateNoWindow = true,
4343
RedirectStandardOutput = true,
44-
RedirectStandardError = true
44+
RedirectStandardError = true,
4545
},
46-
EnableRaisingEvents = true
46+
EnableRaisingEvents = true,
4747
};
4848
var tcs = new TaskCompletionSource<bool>();
4949
process.Exited += (sender, arg) =>

src/KubernetesClient/Versioning/KubernetesVersionComparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private enum Stream
5959
{
6060
Alpha = 1,
6161
Beta = 2,
62-
Final = 3
62+
Final = 3,
6363
}
6464
}
6565
}

tests/KubernetesClient.Tests/AuthTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ private K8SConfiguration GetK8SConfiguration(string serverUri, string responseJs
483483
new Cluster
484484
{
485485
Name = name,
486-
ClusterEndpoint = new ClusterEndpoint { SkipTlsVerify = true, Server = serverUri }
486+
ClusterEndpoint = new ClusterEndpoint { SkipTlsVerify = true, Server = serverUri },
487487
},
488488
};
489489

@@ -522,7 +522,7 @@ private K8SConfiguration GetK8SConfiguration(string serverUri, string responseJs
522522
Command = command,
523523
Arguments = arguments.ToList()
524524
}
525-
}
525+
},
526526
},
527527
};
528528
var kubernetesConfig = new K8SConfiguration { Clusters = clusters, Users = users, Contexts = contexts };

tests/KubernetesClient.Tests/ExternalExecutionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void CreateRunnableExternalProcess()
1616
Command = "command",
1717
Arguments = new List<string> { "arg1", "arg2" },
1818
EnvironmentVariables = new List<Dictionary<string, string>>
19-
{ new Dictionary<string, string> { { "name", "testkey" }, { "value", "testvalue" } } }
19+
{ new Dictionary<string, string> { { "name", "testkey" }, { "value", "testvalue" } } },
2020
});
2121

2222
var actualExecInfo = JsonConvert.DeserializeObject<Dictionary<string, dynamic>>(actual.StartInfo.EnvironmentVariables["KUBERNETES_EXEC_INFO"]);

tests/KubernetesClient.Tests/Mock/MockWebSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public override Task SendAsync(ArraySegment<byte> buffer, WebSocketMessageType m
120120
{
121121
Buffer = buffer,
122122
MessageType = messageType,
123-
EndOfMessage = endOfMessage
123+
EndOfMessage = endOfMessage,
124124
},
125125
});
126126
return Task.CompletedTask;

tests/KubernetesClient.Tests/ModelExtensionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void TestMetadata()
6969
Name = "name",
7070
NamespaceProperty = "ns",
7171
ResourceVersion = "42",
72-
Uid = "id"
72+
Uid = "id",
7373
};
7474
Assert.Equal(ts, pod.CreationTimestamp().Value);
7575
Assert.Equal(ts2, pod.DeletionTimestamp().Value);

tests/KubernetesClient.Tests/OperatingSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ public enum OperatingSystem
77
{
88
Windows = 1,
99
Linux = 2,
10-
OSX = 4
10+
OSX = 4,
1111
}
1212
}

tests/KubernetesClient.Tests/PodExecTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void GetExitCodeOrThrowNonZeroExitCode()
121121
Causes = new List<V1StatusCause>()
122122
{
123123
new V1StatusCause() { Reason = "ExitCode", Message = "1" }
124-
}
124+
},
125125
},
126126
};
127127

@@ -142,7 +142,7 @@ public void GetExitCodeOrThrowInvalidExitCode()
142142
Causes = new List<V1StatusCause>()
143143
{
144144
new V1StatusCause() { Reason = "ExitCode", Message = "abc" }
145-
}
145+
},
146146
},
147147
};
148148

@@ -290,7 +290,7 @@ public async Task NamespacedPodExecAsyncExitCodeNonZero()
290290
Causes = new List<V1StatusCause>()
291291
{
292292
new V1StatusCause() { Reason = "ExitCode", Message = "1" }
293-
}
293+
},
294294
},
295295
};
296296

tests/KubernetesClient.Tests/WatchTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public async Task WatcherIntegrationTest()
593593
},
594594
RestartPolicy = "Never"
595595
},
596-
}
596+
},
597597
},
598598
},
599599
"default").ConfigureAwait(false);

tests/KubernetesClient.Tests/YamlTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void WritePropertyNamedReadOnlyToString()
165165
},
166166
}
167167
}
168-
}
168+
},
169169
},
170170
};
171171

@@ -284,7 +284,7 @@ public void SerializeIntOrString()
284284
ApiVersion = "v1",
285285
Spec = new V1ServiceSpec
286286
{
287-
Ports = new List<V1ServicePort> { new V1ServicePort { Port = 3000, TargetPort = 3000 } }
287+
Ports = new List<V1ServicePort> { new V1ServicePort { Port = 3000, TargetPort = 3000 } },
288288
},
289289
};
290290

0 commit comments

Comments
 (0)