Skip to content

Commit 4560320

Browse files
committed
Re-fix ignoring parameter inspections
1 parent fa018b0 commit 4560320

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Rubberduck.Parsing/Symbols/Declaration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,13 @@ public bool IsEnumeratorMember
308308

309309
public bool IsInspectionDisabled(string inspectionName)
310310
{
311+
if (DeclarationType == DeclarationType.Parameter)
312+
{
313+
return ParentDeclaration.Annotations.Any(annotation =>
314+
annotation.AnnotationType == AnnotationType.Ignore
315+
&& ((IgnoreAnnotation)annotation).IsIgnored(inspectionName));
316+
}
317+
311318
return Annotations.Any(annotation =>
312319
annotation.AnnotationType == AnnotationType.Ignore
313320
&& ((IgnoreAnnotation)annotation).IsIgnored(inspectionName));

0 commit comments

Comments
 (0)