Skip to content

Commit c2ca394

Browse files
committed
Suppress RS2000 for pseudo-rules with no UI
1 parent 6aecc53 commit c2ca394

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/MaintainabilityRules/SA1119StatementMustNotUseUnnecessaryParenthesis.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ internal class SA1119StatementMustNotUseUnnecessaryParenthesis : DiagnosticAnaly
6464
new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, AnalyzerCategory.MaintainabilityRules, DiagnosticSeverity.Warning, AnalyzerConstants.EnabledByDefault, Description, HelpLink);
6565

6666
private static readonly DiagnosticDescriptor ParenthesisDescriptor =
67+
#pragma warning disable RS2000 // Add analyzer diagnostic IDs to analyzer release.
6768
new DiagnosticDescriptor(ParenthesesDiagnosticId, Title, MessageFormat, AnalyzerCategory.MaintainabilityRules, DiagnosticSeverity.Hidden, AnalyzerConstants.EnabledByDefault, Description, HelpLink, customTags: new[] { WellKnownDiagnosticTags.Unnecessary, WellKnownDiagnosticTags.NotConfigurable });
69+
#pragma warning restore RS2000 // Add analyzer diagnostic IDs to analyzer release.
6870

6971
private static readonly Action<CompilationStartAnalysisContext> CompilationStartAction = HandleCompilationStart;
7072
private static readonly Action<SyntaxNodeAnalysisContext> ParenthesizedExpressionAction = HandleParenthesizedExpression;

0 commit comments

Comments
 (0)