@@ -27,6 +27,7 @@ public static class ToolSettings
27
27
public static FilePath EazfuscatorToolLocation { get ; private set ; }
28
28
public static string AmazonLambdaGlobalTool { get ; private set ; }
29
29
public static string DependencyCheckTool { get ; private set ; }
30
+ public static bool DependencyCheckDisableYarnAudit { get ; private set ; }
30
31
public static string DotNetFormatGlobalTool { get ; private set ; }
31
32
public static string GitVersionGlobalTool { get ; private set ; }
32
33
public static string GitVersionTool { get ; private set ; }
@@ -109,7 +110,8 @@ public static class ToolSettings
109
110
List < string > scriptAnalyzerExcludePaths = null ,
110
111
string testCoverageExcludeByAttribute = null ,
111
112
string testCoverageExcludeByFile = null ,
112
- string testCoverageFilter = null
113
+ string testCoverageFilter = null ,
114
+ bool dependencyCheckDisableYarnAudit = false
113
115
)
114
116
{
115
117
context . Information ( "Setting up tools..." ) ;
@@ -125,6 +127,13 @@ public static class ToolSettings
125
127
TestCoverageExcludeByFile = testCoverageExcludeByFile ?? "*/*Designer.cs;*/*.g.cs;*/*.g.i.cs" ;
126
128
TestCoverageFilter = testCoverageFilter ?? string . Format ( "+[{0}*]* +[{1}*]* -[*.tests]* -[*.Tests]*" , BuildParameters . Title , BuildParameters . Title . ToLowerInvariant ( ) ) ;
127
129
130
+ DependencyCheckDisableYarnAudit = dependencyCheckDisableYarnAudit ;
131
+
132
+ if ( context . HasArgument ( "dependencyCheckDisableYarnAudit" ) )
133
+ {
134
+ DependencyCheckDisableYarnAudit = context . Argument < bool > ( "dependencyCheckDisableYarnAudit" ) ;
135
+ }
136
+
128
137
// We only use MSBuild when running on Windows. Elsewhere, we use XBuild when required. As a result,
129
138
// we only need to detect the correct version of MSBuild when running on WIndows, and when it hasn't
130
139
// been explicitly set.
0 commit comments