Skip to content

Commit e28556b

Browse files
committed
fix spacing SA1012 SA1004
1 parent e8cf4b1 commit e28556b

File tree

6 files changed

+29
-29
lines changed

6 files changed

+29
-29
lines changed

src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ public static Process CreateRunnableExternalProcess(ExternalExecution config)
416416
{
417417
var execInfo = new Dictionary<string, dynamic>
418418
{
419-
{"apiVersion", config.ApiVersion },
420-
{"kind", "ExecCredentials" },
421-
{"spec", new Dictionary<string, bool> { {"interactive", Environment.UserInteractive } } },
419+
{ "apiVersion", config.ApiVersion },
420+
{ "kind", "ExecCredentials" },
421+
{ "spec", new Dictionary<string, bool> { { "interactive", Environment.UserInteractive } } },
422422
};
423423

424424
var process = new Process();

src/KubernetesClient/ModelExtensions.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace k8s.Models
66
{
7-
///<summary>Adds convenient extensions for Kubernetes objects.</summary>
7+
/// <summary>Adds convenient extensions for Kubernetes objects.</summary>
88
public static class ModelExtensions
99
{
10-
///<summary>Adds the given finalizer to a Kubernetes object if it doesn't already exist.</summary>
11-
///<returns>Returns true if the finalizer was added and false if it already existed.</returns>
10+
/// <summary>Adds the given finalizer to a Kubernetes object if it doesn't already exist.</summary>
11+
/// <returns>Returns true if the finalizer was added and false if it already existed.</returns>
1212
public static bool AddFinalizer(this IMetadata<V1ObjectMeta> obj, string finalizer)
1313
{
1414
if (string.IsNullOrEmpty(finalizer))

src/KubernetesClient/ResourceQuantity.cs

+17-17
Original file line numberDiff line numberDiff line change
@@ -233,28 +233,28 @@ private class Suffixer
233233
{
234234
// Don't emit an error when trying to produce
235235
// a suffix for 2^0.
236-
{"", (2, 0) },
237-
{"Ki", (2, 10) },
238-
{"Mi", (2, 20) },
239-
{"Gi", (2, 30) },
240-
{"Ti", (2, 40) },
241-
{"Pi", (2, 50) },
242-
{"Ei", (2, 60) },
236+
{ "", (2, 0) },
237+
{ "Ki", (2, 10) },
238+
{ "Mi", (2, 20) },
239+
{ "Gi", (2, 30) },
240+
{ "Ti", (2, 40) },
241+
{ "Pi", (2, 50) },
242+
{ "Ei", (2, 60) },
243243
};
244244

245245
private static readonly IReadOnlyDictionary<string, (int, int)> DecSuffixes =
246246
new Dictionary<string, (int, int)>
247247
{
248-
{"n", (10, -9) },
249-
{"u", (10, -6) },
250-
{"m", (10, -3) },
251-
{"", (10, 0) },
252-
{"k", (10, 3) },
253-
{"M", (10, 6) },
254-
{"G", (10, 9) },
255-
{"T", (10, 12) },
256-
{"P", (10, 15) },
257-
{"E", (10, 18) },
248+
{ "n", (10, -9) },
249+
{ "u", (10, -6) },
250+
{ "m", (10, -3) },
251+
{ "", (10, 0) },
252+
{ "k", (10, 3) },
253+
{ "M", (10, 6) },
254+
{ "G", (10, 9) },
255+
{ "T", (10, 12) },
256+
{ "P", (10, 15) },
257+
{ "E", (10, 18) },
258258
};
259259

260260
public Suffixer(string suffix)

tests/KubernetesClient.Tests/AuthTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private K8SConfiguration GetK8SConfiguration(string serverUri, string responseJs
474474

475475
var contexts = new List<Context>
476476
{
477-
new Context {Name = name, ContextDetails = new ContextDetails {Cluster = name, User = username } },
477+
new Context { Name = name, ContextDetails = new ContextDetails { Cluster = name, User = username } },
478478
};
479479

480480
{
@@ -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

tests/KubernetesClient.Tests/PodExecTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void GetExitCodeOrThrowNonZeroExitCode()
120120
{
121121
Causes = new List<V1StatusCause>()
122122
{
123-
new V1StatusCause() {Reason = "ExitCode", Message = "1" }
123+
new V1StatusCause() { Reason = "ExitCode", Message = "1" }
124124
}
125125
},
126126
};
@@ -141,7 +141,7 @@ public void GetExitCodeOrThrowInvalidExitCode()
141141
{
142142
Causes = new List<V1StatusCause>()
143143
{
144-
new V1StatusCause() {Reason = "ExitCode", Message = "abc" }
144+
new V1StatusCause() { Reason = "ExitCode", Message = "abc" }
145145
}
146146
},
147147
};
@@ -289,7 +289,7 @@ public async Task NamespacedPodExecAsyncExitCodeNonZero()
289289
{
290290
Causes = new List<V1StatusCause>()
291291
{
292-
new V1StatusCause() {Reason = "ExitCode", Message = "1" }
292+
new V1StatusCause() { Reason = "ExitCode", Message = "1" }
293293
}
294294
},
295295
};

tests/KubernetesClient.Tests/WatchTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ public async Task WatcherIntegrationTest()
584584
{
585585
Image = "ubuntu/xenial",
586586
Name = "runner",
587-
Command = new List<string>() {"/bin/bash", "-c", "--" },
587+
Command = new List<string>() { "/bin/bash", "-c", "--" },
588588
Args = new List<string>()
589589
{
590590
"trap : TERM INT; sleep infinity & wait"

0 commit comments

Comments
 (0)