Skip to content

Commit 77d8a23

Browse files
committed
Allow to apply IgnoreOnce in bulk
1 parent 7f35af8 commit 77d8a23

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Rubberduck.CodeAnalysis/QuickFixes/Concrete/IgnoreInModuleQuickFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Rubberduck.CodeAnalysis.QuickFixes.Concrete
1313
/// <summary>
1414
/// Adds an '@IgnoreModule annotation to ignore a inspection results for a specific inspection inside a whole module. Applicable to all inspections whose results can be annotated in a module.
1515
/// </summary>
16-
/// <canfix procedure="false" module="false" project="false" />
16+
/// <canfix procedure="false" module="true" project="true" />
1717
/// <example>
1818
/// <before>
1919
/// <![CDATA[

Rubberduck.CodeAnalysis/QuickFixes/Concrete/IgnoreOnceQuickFix.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Rubberduck.CodeAnalysis.QuickFixes.Concrete
1414
/// <summary>
1515
/// Adds an '@Ignore annotation to ignore a specific inspection result. Applicable to all inspections whose results can be annotated in a module.
1616
/// </summary>
17-
/// <canfix procedure="false" module="false" project="false" />
17+
/// <canfix procedure="true" module="true" project="true" />
1818
/// <example>
1919
/// <before>
2020
/// <![CDATA[
@@ -48,10 +48,10 @@ public IgnoreOnceQuickFix(IAnnotationUpdater annotationUpdater, RubberduckParser
4848
_annotationUpdater = annotationUpdater;
4949
}
5050

51-
public override bool CanFixInProcedure => false;
52-
public override bool CanFixInModule => false;
53-
public override bool CanFixInProject => false;
54-
public override bool CanFixAll => false;
51+
public override bool CanFixInProcedure => true;
52+
public override bool CanFixInModule => true;
53+
public override bool CanFixInProject => true;
54+
public override bool CanFixAll => true;
5555

5656
public override void Fix(IInspectionResult result, IRewriteSession rewriteSession)
5757
{

0 commit comments

Comments
 (0)