Skip to content

Commit 368f3c9

Browse files
authored
refactor: fix SA1518 (#208)
1 parent a66a444 commit 368f3c9

25 files changed

+24
-28
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,6 @@ dotnet_diagnostic.SA1500.severity = suggestion
583583
# Single-line comment should be preceded by blank line
584584
dotnet_diagnostic.SA1515.severity = suggestion
585585

586-
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md
587-
# File is required to end with a single newline character
588-
dotnet_diagnostic.SA1518.severity = suggestion
589-
590586
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1600.md
591587
# Elements should be documented
592588
dotnet_diagnostic.SA1600.severity = suggestion

src/Microsoft.ComponentDetection.Common/AsyncExecution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ public static async Task ExecuteVoidWithTimeoutAsync(Action toExecute, TimeSpan
3939
}
4040
}
4141
}
42-
}
42+
}

src/Microsoft.ComponentDetection.Common/Column.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ public class Column
88

99
public string Format { get; set; }
1010
}
11-
}
11+
}

src/Microsoft.ComponentDetection.Common/DockerReference/DigestUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ public static bool CheckDigest(string digest, bool throwError = true)
5151
return true;
5252
}
5353
}
54-
}
54+
}

src/Microsoft.ComponentDetection.Common/FileUtilityService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ public Stream MakeFileStream(string fileName)
3232
return new FileStream(fileName, FileMode.Open, FileAccess.Read);
3333
}
3434
}
35-
}
35+
}

src/Microsoft.ComponentDetection.Common/ISafeFileEnumerableFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public interface ISafeFileEnumerableFactory
1414
/// <returns>A FileInfo enumerable that should be iterated over, containing all valid files given the input patterns and directory exclusions.</returns>
1515
IEnumerable<MatchedFile> CreateSafeFileEnumerable(DirectoryInfo directory, IEnumerable<string> searchPatterns, ExcludeDirectoryPredicate directoryExclusionPredicate);
1616
}
17-
}
17+
}

src/Microsoft.ComponentDetection.Common/Telemetry/Records/LinuxContainerDetectorLayerAwareness.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public class LinuxContainerDetectorLayerAwareness : BaseDetectionTelemetryRecord
1414

1515
public string BaseImageLayerMessage { get; set; }
1616
}
17-
}
17+
}

src/Microsoft.ComponentDetection.Common/VerbosityMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ public enum VerbosityMode
66
Normal = 1,
77
Verbose = 2,
88
}
9-
}
9+
}

src/Microsoft.ComponentDetection.Common/WarnOnAlertSeverity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ public enum WarnOnAlertSeverity
88
Medium = 3,
99
Low = 4,
1010
}
11-
}
11+
}

src/Microsoft.ComponentDetection.Contracts/IFileUtilityService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ public interface IFileUtilityService
1515

1616
Stream MakeFileStream(string fileName);
1717
}
18-
}
18+
}

0 commit comments

Comments
 (0)