@Test public void test() { FunctionCallComplexityCheck check = new FunctionCallComplexityCheck(); check.setMaximumFunctionCallComplexityThreshold(1); SourceFile file = LuaAstScanner.scanSingleFile(new File("src/test/resources/checks/functionCallComplexity.lua"), check); CheckMessagesVerifier.verify(file.getCheckMessages()) .next().atLine(1).withMessage("FunctionCall has a complexity of 5 which is greater than 1 authorized.") .noMore(); }
public void setMaximumFunctionCallComplexityThreshold(int threshold) { this.maximumFunctionCallComplexityThreshold = threshold; }
FunctionCallComplexityCheck extends LuaCheck { public void setMaximumFunctionCallComplexityThreshold(int threshold) { this.maximumFunctionCallComplexityThreshold = threshold; } }
FunctionCallComplexityCheck extends LuaCheck { public void setMaximumFunctionCallComplexityThreshold(int threshold) { this.maximumFunctionCallComplexityThreshold = threshold; }  }
FunctionCallComplexityCheck extends LuaCheck { public void setMaximumFunctionCallComplexityThreshold(int threshold) { this.maximumFunctionCallComplexityThreshold = threshold; }  @Override void init(); @Override void leaveNode(AstNode node); void setMaximumFunctionCallComplexityThreshold(int threshold); }
FunctionCallComplexityCheck extends LuaCheck { public void setMaximumFunctionCallComplexityThreshold(int threshold) { this.maximumFunctionCallComplexityThreshold = threshold; }  @Override void init(); @Override void leaveNode(AstNode node); void setMaximumFunctionCallComplexityThreshold(int threshold);  }