We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb890c7 commit 0e0d578Copy full SHA for 0e0d578
1 file changed
WpfAnalyzers/Suppressors/Sa1202Suppressor.cs
@@ -24,7 +24,8 @@ public override void ReportSuppressions(SuppressionAnalysisContext context)
24
switch (root.FindNode(diagnostic.Location.SourceSpan))
25
{
26
case VariableDeclaratorSyntax { Parent: VariableDeclarationSyntax { Type: { } type } }
27
- when type == KnownSymbols.DependencyProperty:
+ when type == KnownSymbols.DependencyProperty ||
28
+ type == KnownSymbols.RoutedEvent:
29
context.ReportSuppression(Suppression.Create(Descriptor, diagnostic));
30
break;
31
case MethodDeclarationSyntax method
0 commit comments