@Test public void test() { FunctionComplexityCheck check = new FunctionComplexityCheck(); check.setMaximumFunctionComplexityThreshold(0); SourceFile file = LuaAstScanner.scanSingleFile(new File("src/test/resources/checks/functionComplexity.lua"), check); CheckMessagesVerifier.verify(file.getCheckMessages()) .next().atLine(1).withMessage("Function has a complexity of 4 which is greater than 0 authorized.") .noMore(); }
public void setMaximumFunctionComplexityThreshold(int threshold) { this.maximumFunctionComplexityThreshold = threshold; }
FunctionComplexityCheck extends LuaCheck { public void setMaximumFunctionComplexityThreshold(int threshold) { this.maximumFunctionComplexityThreshold = threshold; } }
FunctionComplexityCheck extends LuaCheck { public void setMaximumFunctionComplexityThreshold(int threshold) { this.maximumFunctionComplexityThreshold = threshold; }  }
FunctionComplexityCheck extends LuaCheck { public void setMaximumFunctionComplexityThreshold(int threshold) { this.maximumFunctionComplexityThreshold = threshold; }  @Override void init(); @Override void leaveNode(AstNode node); void setMaximumFunctionComplexityThreshold(int threshold); }
FunctionComplexityCheck extends LuaCheck { public void setMaximumFunctionComplexityThreshold(int threshold) { this.maximumFunctionComplexityThreshold = threshold; }  @Override void init(); @Override void leaveNode(AstNode node); void setMaximumFunctionComplexityThreshold(int threshold); static final String CHECK_KEY; }