File tree Expand file tree Collapse file tree
AspNetCoreAnalyzers.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- namespace AspNetCoreAnalyzers . Tests
1+ namespace AspNetCoreAnalyzers . Tests
22{
33 using System ;
44 using System . Collections . Generic ;
@@ -10,11 +10,13 @@ namespace AspNetCoreAnalyzers.Tests
1010
1111 public static class ValidWithAllAnalyzers
1212 {
13- private static readonly IReadOnlyList < DiagnosticAnalyzer > AllAnalyzers = typeof ( Descriptors )
14- . Assembly . GetTypes ( )
15- . Where ( typeof ( DiagnosticAnalyzer ) . IsAssignableFrom )
16- . Select ( t => ( DiagnosticAnalyzer ) Activator . CreateInstance ( t ) )
17- . ToArray ( ) ;
13+ private static readonly IReadOnlyList < DiagnosticAnalyzer > AllAnalyzers =
14+ typeof ( Descriptors )
15+ . Assembly
16+ . GetTypes ( )
17+ . Where ( t => typeof ( DiagnosticAnalyzer ) . IsAssignableFrom ( t ) && ! t . IsAbstract )
18+ . Select ( t => ( DiagnosticAnalyzer ) Activator . CreateInstance ( t ) )
19+ . ToArray ( ) ;
1820
1921 private static readonly Solution AnalyzersProjectSolution = CodeFactory . CreateSolution (
2022 ProjectFile . Find ( "AspNetCoreAnalyzers.csproj" ) ,
You can’t perform that action at this time.
0 commit comments