Skip to content

Commit 981c4ed

Browse files
authored
refactor: fix SA1001 (#204)
1 parent 06e5188 commit 981c4ed

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,6 @@ dotnet_naming_rule.parameters_rule.severity = warning
459459
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers
460460
##########################################
461461

462-
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1001.md
463-
# Commas should not be preceded by whitespace
464-
dotnet_diagnostic.SA1001.severity = suggestion
465-
466462
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md
467463
# Single line comment should begin with a space
468464
dotnet_diagnostic.SA1005.severity = suggestion

test/Microsoft.ComponentDetection.Detectors.Tests/LinuxContainerDetectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public async Task TestLinuxContainerDetector_HandlesScratchBase() {
215215
.Throws(new IOException());
216216
this.mockDockerService.Setup(service => service.InspectImageAsync(It.IsAny<string>(), It.IsAny<CancellationToken>()))
217217
// Specify BaseImageRef = scratch to verify that cope
218-
.ReturnsAsync(new ContainerDetails { Id = 1, ImageId = NodeLatestDigest, Layers = Enumerable.Empty<DockerLayer>() , BaseImageRef = "scratch"});
218+
.ReturnsAsync(new ContainerDetails { Id = 1, ImageId = NodeLatestDigest, Layers = Enumerable.Empty<DockerLayer>(), BaseImageRef = "scratch"});
219219
await this.TestLinuxContainerDetector();
220220
}
221221
}

0 commit comments

Comments
 (0)