Skip to content

Commit d72f4a6

Browse files
authored
Merge pull request #7301 from Azure/static-analysis-update
Fix incorrect filtering in StaticAnalysis
2 parents ec24766 + 9958028 commit d72f4a6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/StaticAnalysis/Program.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,14 @@ public static void Main(string[] args)
100100
int idx = Array.FindIndex(args, a => a == "--modules-to-analyze" || a == "-m");
101101
if (idx + 1 == args.Length)
102102
{
103-
Console.WriteLine("No value provided for the --modules-to-analyze parameter.");
103+
Console.WriteLine("No value provided for the --modules-to-analyze parameter. Filtering over all built modules.");
104104
}
105105
else
106106
{
107107
modulesToAnalyze = args[idx + 1].Split(';').ToList();
108108
}
109109
}
110110

111-
if (!modulesToAnalyze.Any())
112-
{
113-
Console.WriteLine("No modules were found to analyze -- skipping Static Analysis check.");
114-
return;
115-
}
116-
117111
bool useNetcore = args.Any(a => a == "--use-netcore" || a == "-u");
118112
if (!useNetcore)
119113
{

0 commit comments

Comments
 (0)