File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tools-local/Microsoft.ML.InternalCodeAnalyzer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,6 @@ dotnet_diagnostic.VSTHRD103.severity = none
13
13
# VSTHRD200: Use "Async" suffix for async methods
14
14
dotnet_diagnostic.VSTHRD200.severity = none
15
15
16
- # RS1025: Configure generated code analysis
17
- dotnet_diagnostic.RS1025.severity = none
18
-
19
16
# RS1026: Enable concurrent execution
20
17
dotnet_diagnostic.RS1026.severity = none
21
18
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ public sealed class BestFriendAnalyzer : DiagnosticAnalyzer
38
38
39
39
public override void Initialize ( AnalysisContext context )
40
40
{
41
+ // This analyzer reports violations in all code (including generated code)
42
+ context . ConfigureGeneratedCodeAnalysis ( GeneratedCodeAnalysisFlags . Analyze | GeneratedCodeAnalysisFlags . ReportDiagnostics ) ;
43
+
41
44
context . RegisterSemanticModelAction ( Analyze ) ;
42
45
}
43
46
You can’t perform that action at this time.
0 commit comments