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