From a99550f7656ec528ec4bc43fd8bcdc8dd8c51266 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 16 Aug 2022 12:13:48 -0700 Subject: [PATCH] refactor: fix SA1005 (#205) Related to #202 Single line comment should begin with a space https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md --- .editorconfig | 4 ---- .../go/GoComponentDetector.cs | 4 ++-- .../linux/LinuxContainerDetector.cs | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.editorconfig b/.editorconfig index f1502e24c..1b50c1aa6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -459,10 +459,6 @@ dotnet_naming_rule.parameters_rule.severity = warning # https://github.com/DotNetAnalyzers/StyleCopAnalyzers ########################################## -# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md -# Single line comment should begin with a space -dotnet_diagnostic.SA1005.severity = suggestion - # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1101.md # Prefix local calls with this dotnet_diagnostic.SA1101.severity = suggestion diff --git a/src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs b/src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs index a4ff5192f..f475d3658 100644 --- a/src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs @@ -184,8 +184,8 @@ private bool TryToCreateGoComponentFromModLine(string line, out GoComponent goCo return true; } - //For more information about the format of the go.sum file - //visit https://golang.org/cmd/go/#hdr-Module_authentication_using_go_sum + // For more information about the format of the go.sum file + // visit https://golang.org/cmd/go/#hdr-Module_authentication_using_go_sum private void ParseGoSumFile( ISingleFileComponentRecorder singleFileComponentRecorder, IComponentStream file) diff --git a/src/Microsoft.ComponentDetection.Detectors/linux/LinuxContainerDetector.cs b/src/Microsoft.ComponentDetection.Detectors/linux/LinuxContainerDetector.cs index 74be5e4ba..1d19c78ba 100644 --- a/src/Microsoft.ComponentDetection.Detectors/linux/LinuxContainerDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/linux/LinuxContainerDetector.cs @@ -132,7 +132,7 @@ await this.DockerService.TryPullImageAsync(image, cancellationToken))) var image = kvp.Key; var baseImageLayerCount = await this.GetBaseImageLayerCount(internalContainerDetails, image, cancellationToken); - //Update the layer information to specify if a layer was fond in the specified baseImage + // Update the layer information to specify if a layer was fond in the specified baseImage internalContainerDetails.Layers = internalContainerDetails.Layers.Select(layer => new DockerLayer { DiffId = layer.DiffId,