Skip to content

Commit 755fa54

Browse files
committed
Only allow one fix at a time.
1 parent 468a258 commit 755fa54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RetailCoder.VBE/Inspections/ProcedureShouldBeFunctionInspectionResult.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ public ProcedureShouldBeFunctionInspectionResult(IInspection inspection, Rubberd
2929

3030
public class ChangeProcedureToFunction : CodeInspectionQuickFix
3131
{
32+
public override bool CanFixInModule { get { return false; } }
33+
public override bool CanFixInProject { get { return false; } }
34+
3235
private readonly RubberduckParserState _state;
3336
private readonly QualifiedContext<VBAParser.ArgListContext> _argListQualifiedContext;
3437
private readonly QualifiedContext<VBAParser.SubStmtContext> _subStmtQualifiedContext;
3538
private readonly QualifiedContext<VBAParser.ArgContext> _argQualifiedContext;
39+
3640
private int _lineOffset;
3741

3842
public ChangeProcedureToFunction(RubberduckParserState state,

0 commit comments

Comments
 (0)