@Test public void test() { check.setMaximumFileComplexityThreshold(0); SourceFile file = LuaAstScanner.scanSingleFile(new File("src/test/resources/checks/fileComplexity.lua"), check); CheckMessagesVerifier.verify(file.getCheckMessages()) .next().withMessage("File has a complexity of 1 which is greater than 0"+ " authorized.") .noMore(); }
public void setMaximumFileComplexityThreshold(int threshold) { this.maximumFileComplexityThreshold = threshold; }
FileComplexityCheck extends SquidCheck<LexerlessGrammar> { public void setMaximumFileComplexityThreshold(int threshold) { this.maximumFileComplexityThreshold = threshold; } }
FileComplexityCheck extends SquidCheck<LexerlessGrammar> { public void setMaximumFileComplexityThreshold(int threshold) { this.maximumFileComplexityThreshold = threshold; }  }
FileComplexityCheck extends SquidCheck<LexerlessGrammar> { public void setMaximumFileComplexityThreshold(int threshold) { this.maximumFileComplexityThreshold = threshold; }  @Override void leaveFile(AstNode astNode); void setMaximumFileComplexityThreshold(int threshold); }
FileComplexityCheck extends SquidCheck<LexerlessGrammar> { public void setMaximumFileComplexityThreshold(int threshold) { this.maximumFileComplexityThreshold = threshold; }  @Override void leaveFile(AstNode astNode); void setMaximumFileComplexityThreshold(int threshold); static final String CHECK_KEY; }