Skip to content

Commit

Permalink
Fix SA1515 (#248)
Browse files Browse the repository at this point in the history
Co-authored-by: �Amitla Vannikumar <[email protected]>
  • Loading branch information
amitla1 and Amitla Vannikumar authored Aug 31, 2022
1 parent 3aba966 commit e195140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,6 @@ dotnet_diagnostic.SA1413.severity = suggestion
# Tuple types in signatures should have element names
dotnet_diagnostic.SA1414.severity = suggestion

# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1515.md
# Single-line comment should be preceded by blank line
dotnet_diagnostic.SA1515.severity = suggestion

# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1600.md
# Elements should be documented
dotnet_diagnostic.SA1600.severity = suggestion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ public async Task TestLinuxContainerDetector_HandlesScratchBase()
this.mockDockerService.Setup(service => service.TryPullImageAsync("scratch", It.IsAny<CancellationToken>()))
.Throws(new IOException());
this.mockDockerService.Setup(service => service.InspectImageAsync(It.IsAny<string>(), It.IsAny<CancellationToken>()))

// Specify BaseImageRef = scratch to verify that cope
.ReturnsAsync(new ContainerDetails { Id = 1, ImageId = NodeLatestDigest, Layers = Enumerable.Empty<DockerLayer>(), BaseImageRef = "scratch" });
await this.TestLinuxContainerDetector();
Expand Down

0 comments on commit e195140

Please sign in to comment.