Skip to content

Commit a99550f

Browse files
authored
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
1 parent 981c4ed commit a99550f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
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/SA1005.md
463-
# Single line comment should begin with a space
464-
dotnet_diagnostic.SA1005.severity = suggestion
465-
466462
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1101.md
467463
# Prefix local calls with this
468464
dotnet_diagnostic.SA1101.severity = suggestion

src/Microsoft.ComponentDetection.Detectors/go/GoComponentDetector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ private bool TryToCreateGoComponentFromModLine(string line, out GoComponent goCo
184184
return true;
185185
}
186186

187-
//For more information about the format of the go.sum file
188-
//visit https://golang.org/cmd/go/#hdr-Module_authentication_using_go_sum
187+
// For more information about the format of the go.sum file
188+
// visit https://golang.org/cmd/go/#hdr-Module_authentication_using_go_sum
189189
private void ParseGoSumFile(
190190
ISingleFileComponentRecorder singleFileComponentRecorder,
191191
IComponentStream file)

src/Microsoft.ComponentDetection.Detectors/linux/LinuxContainerDetector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ await this.DockerService.TryPullImageAsync(image, cancellationToken)))
132132
var image = kvp.Key;
133133
var baseImageLayerCount = await this.GetBaseImageLayerCount(internalContainerDetails, image, cancellationToken);
134134

135-
//Update the layer information to specify if a layer was fond in the specified baseImage
135+
// Update the layer information to specify if a layer was fond in the specified baseImage
136136
internalContainerDetails.Layers = internalContainerDetails.Layers.Select(layer => new DockerLayer
137137
{
138138
DiffId = layer.DiffId,

0 commit comments

Comments
 (0)