refactor: fix SA1518 (#208)
This commit is contained in:
Родитель
a66a444f3e
Коммит
368f3c9692
|
@ -583,10 +583,6 @@ dotnet_diagnostic.SA1500.severity = suggestion
|
|||
# Single-line comment should be preceded by blank line
|
||||
dotnet_diagnostic.SA1515.severity = suggestion
|
||||
|
||||
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md
|
||||
# File is required to end with a single newline character
|
||||
dotnet_diagnostic.SA1518.severity = suggestion
|
||||
|
||||
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1600.md
|
||||
# Elements should be documented
|
||||
dotnet_diagnostic.SA1600.severity = suggestion
|
||||
|
|
|
@ -39,4 +39,4 @@ namespace Microsoft.ComponentDetection.Common
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
public string Format { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,4 +51,4 @@ namespace Microsoft.ComponentDetection.Common
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,4 @@ namespace Microsoft.ComponentDetection.Common
|
|||
return new FileStream(fileName, FileMode.Open, FileAccess.Read);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ namespace Microsoft.ComponentDetection.Common
|
|||
/// <returns>A FileInfo enumerable that should be iterated over, containing all valid files given the input patterns and directory exclusions.</returns>
|
||||
IEnumerable<MatchedFile> CreateSafeFileEnumerable(DirectoryInfo directory, IEnumerable<string> searchPatterns, ExcludeDirectoryPredicate directoryExclusionPredicate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ namespace Microsoft.ComponentDetection.Common.Telemetry.Records
|
|||
|
||||
public string BaseImageLayerMessage { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
Normal = 1,
|
||||
Verbose = 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
Medium = 3,
|
||||
Low = 4,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ namespace Microsoft.ComponentDetection.Contracts
|
|||
|
||||
Stream MakeFileStream(string fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,4 @@ namespace Microsoft.ComponentDetection.Contracts
|
|||
|
||||
IObservable<ProcessRequest> GetFilteredComponentStreamObservable(DirectoryInfo root, IEnumerable<string> patterns, IComponentRecorder componentRecorder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ namespace Microsoft.ComponentDetection.Contracts
|
|||
|
||||
public Dictionary<string, string> AdditionalTelemetryDetails { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,4 +54,4 @@ namespace Microsoft.ComponentDetection.Contracts.TypedComponent
|
|||
[EnumMember]
|
||||
DockerReference = 16,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -169,4 +169,4 @@ namespace Microsoft.ComponentDetection.Detectors.Npm
|
|||
|| UnsafeCharactersRegex.IsMatch(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,4 +10,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
|
||||
Task<IList<(string, GitComponent)>> ParseFile(string path, string pythonPath = null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
/// <returns>The root packages, with dependencies associated as children.</returns>
|
||||
Task<IList<PipGraphNode>> ResolveRoots(IList<PipDependencySpecification> initialPackages);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
public class PythonNotFoundException : Exception
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
{
|
||||
public Dictionary<string, IList<PythonProjectRelease>> Releases { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
|
||||
public Uri Url { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
return xVer.CompareTo(yVer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,4 +137,4 @@ namespace Microsoft.ComponentDetection.Detectors.Pip
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ namespace Microsoft.ComponentDetection.Orchestrator.ArgumentSets
|
|||
{
|
||||
// TODO: Add option to specify download directory for GH database
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,4 @@ namespace Microsoft.ComponentDetection.Orchestrator.Exceptions
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,4 @@ namespace Microsoft.ComponentDetection.Orchestrator.Exceptions
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ namespace Microsoft.ComponentDetection.Orchestrator.Exceptions
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче