Skip to content

Commit 84cd799

Browse files
committed
Report SX1101 violations as unnecessary code
1 parent 67f2527 commit 84cd799

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/SX1101DoNotPrefixLocalMembersWithThis.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal class SX1101DoNotPrefixLocalMembersWithThis : DiagnosticAnalyzer
2525
private static readonly string HelpLink = "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SX1101.md";
2626

2727
private static readonly DiagnosticDescriptor Descriptor =
28-
new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, AnalyzerCategory.ReadabilityRules, DiagnosticSeverity.Warning, AnalyzerConstants.DisabledAlternative, Description, HelpLink);
28+
new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, AnalyzerCategory.ReadabilityRules, DiagnosticSeverity.Warning, AnalyzerConstants.DisabledAlternative, Description, HelpLink, WellKnownDiagnosticTags.Unnecessary);
2929

3030
private static readonly Action<CompilationStartAnalysisContext> CompilationStartAction = HandleCompilationStart;
3131
private static readonly Action<SyntaxNodeAnalysisContext> ThisExpressionAction = HandleThisExpression;

0 commit comments

Comments
 (0)