Refactor: Fix SA1008 (#212)
Co-authored-by: Amitla Vannikumar <avannikumar@microsoft.com>
This commit is contained in:
Родитель
02f9095914
Коммит
027bc286e6
|
@ -463,9 +463,7 @@ dotnet_naming_rule.parameters_rule.severity = warning
|
|||
# Prefix local calls with this
|
||||
dotnet_diagnostic.SA1101.severity = suggestion
|
||||
|
||||
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1008.md
|
||||
# Opening parenthesis should not be followed by a space.
|
||||
dotnet_diagnostic.SA1008.severity = suggestion
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using DotNet.Globbing;
|
||||
using DotNet.Globbing;
|
||||
using Microsoft.ComponentDetection.Common;
|
||||
using Microsoft.ComponentDetection.Common.DependencyGraph;
|
||||
using Microsoft.ComponentDetection.Common.Telemetry.Records;
|
||||
|
@ -262,7 +262,7 @@ namespace Microsoft.ComponentDetection.Orchestrator.Services
|
|||
nameOfExcludedDirectory = exclusionDirectoryInfo.Name,
|
||||
pathOfParentOfDirectoryToExclude = exclusionDirectoryInfo.Parent.FullName,
|
||||
rootedLinuxSymlinkCompatibleRelativePathToExclude =
|
||||
Path.GetDirectoryName( // Get the parent of
|
||||
Path.GetDirectoryName(// Get the parent of
|
||||
Path.IsPathRooted(exclusionDirectoryInfo.ToString())
|
||||
? exclusionDirectoryInfo.ToString() // If rooted, just use the natural path
|
||||
: Path.Join(originalSourceDirectory, exclusionDirectoryInfo.ToString())), // If not rooted, join to sourceDir
|
||||
|
|
Загрузка…
Ссылка в новой задаче