File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers/MaintainabilityRules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ namespace StyleCop.Analyzers.MaintainabilityRules
77 using System . Collections . Immutable ;
88 using System . IO ;
99 using System . Linq ;
10+ using System . Threading ;
1011 using Microsoft . CodeAnalysis ;
1112 using Microsoft . CodeAnalysis . CSharp ;
1213 using Microsoft . CodeAnalysis . CSharp . Syntax ;
@@ -57,17 +58,17 @@ public override void Initialize(AnalysisContext context)
5758
5859 private static void HandleCompilationStart ( CompilationStartAnalysisContext context )
5960 {
60- var analyzer = new Analyzer ( context . Options ) ;
61+ var analyzer = new Analyzer ( context . Options , context . CancellationToken ) ;
6162 context . RegisterSyntaxTreeActionHonorExclusions ( analyzer . HandleSyntaxTree ) ;
6263 }
6364
6465 private class Analyzer
6566 {
6667 private readonly FileNamingConvention fileNamingConvention ;
6768
68- public Analyzer ( AnalyzerOptions options )
69+ public Analyzer ( AnalyzerOptions options , CancellationToken cancellationToken )
6970 {
70- StyleCopSettings settings = options . GetStyleCopSettings ( ) ;
71+ StyleCopSettings settings = options . GetStyleCopSettings ( cancellationToken ) ;
7172 this . fileNamingConvention = settings . DocumentationRules . FileNamingConvention ;
7273 }
7374
You can’t perform that action at this time.
0 commit comments