Skip to content

Commit fcbf5c7

Browse files
committed
Make SA0000 hidden but enabled by default
This change balances performance with usability of the workaround by ensuring that all diagnostics are reported for files that are open in the editor, without the performance overhead of enabling the workaround for every file in the project.
1 parent 9e71f5d commit fcbf5c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/SpecialRules/SA0000Roslyn7446Workaround.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal sealed class SA0000Roslyn7446Workaround : DiagnosticAnalyzer
2222
private static readonly string HelpLink = "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA0000Roslyn7446Workaround.md";
2323

2424
private static readonly DiagnosticDescriptor Descriptor =
25-
new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, AnalyzerCategory.SpecialRules, DiagnosticSeverity.Info, AnalyzerConstants.DisabledByDefault, Description, HelpLink);
25+
new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, AnalyzerCategory.SpecialRules, DiagnosticSeverity.Hidden, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
2626

2727
private static readonly Action<CompilationStartAnalysisContext> CompilationStartAction = HandleCompilationStart;
2828

0 commit comments

Comments
 (0)