diff --git a/src/main/java/com/cflint/plugins/core/SimpleComplexityChecker.java b/src/main/java/com/cflint/plugins/core/SimpleComplexityChecker.java index 6b786623f..247b13400 100644 --- a/src/main/java/com/cflint/plugins/core/SimpleComplexityChecker.java +++ b/src/main/java/com/cflint/plugins/core/SimpleComplexityChecker.java @@ -24,6 +24,13 @@ public class SimpleComplexityChecker extends CFLintScannerAdapter { protected boolean alreadyTooComplex = false; int functionLineNo = 1; + @Override + public void startFile(String fileName, BugList bugs) { + complexity = 0; + alreadyTooComplex = false; + functionLineNo = 1; + } + @Override public void expression(final CFScriptStatement expression, final Context context, final BugList bugs) { CFFuncDeclStatement function;