Skip to content

Commit

Permalink
ProcedureCanBeWrittenAsFunction inspection now honors @ignore annotat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
retailcoder committed Sep 4, 2016
1 parent b035f68 commit 86feaa9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
return ParseTreeResults.ArgListsWithOneByRefParam
.Where(context => context.Context.Parent is VBAParser.SubStmtContext &&
subStmtsNotImplementingInterfaces.Contains(context.Context.Parent) &&
subStmtsNotImplementingEvents.Contains(context.Context.Parent))
subStmtsNotImplementingEvents.Contains(context.Context.Parent)
&& !IsInspectionDisabled(context.ModuleName.Component, context.Context.Start.Line))
.Select(context => new ProcedureShouldBeFunctionInspectionResult(this,
State,
new QualifiedContext<VBAParser.ArgListContext>(context.ModuleName,
Expand Down

0 comments on commit 86feaa9

Please sign in to comment.