Skip to content

Commit 0dd46b3

Browse files
committed
Remove exclusion of compilation diagnostics in testing report
1 parent 9167998 commit 0dd46b3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

StyleCop.Analyzers/StyleCopTester/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ private static async Task<ImmutableArray<Diagnostic>> GetProjectAnalyzerDiagnost
395395
CompilationWithAnalyzers compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, cancellationToken: cancellationToken);
396396

397397
var allDiagnostics = await compilationWithAnalyzers.GetAllDiagnosticsAsync().ConfigureAwait(false);
398-
399-
// We want analyzer diagnostics and analyzer exceptions
400-
return allDiagnostics.RemoveRange(compilation.GetDiagnostics());
398+
return allDiagnostics;
401399
}
402400

403401
private static void PrintHelp()

0 commit comments

Comments
 (0)