Replace IntegerProperty

This commit is contained in:
Clément Fournier
2017-10-15 22:22:36 +02:00
parent 13f3651048
commit a47471f742
13 changed files with 48 additions and 25 deletions

View File

@ -43,8 +43,10 @@ public class CyclomaticComplexityRule extends AbstractPLSQLRule {
private static final Logger LOGGER = Logger.getLogger(CyclomaticComplexityRule.class.getName());
private static final String CLASS_NAME = CyclomaticComplexityRule.class.getName();
public static final IntegerProperty REPORT_LEVEL_DESCRIPTOR = new IntegerProperty("reportLevel",
"Cyclomatic Complexity reporting threshold", 1, 30, 10, 1.0f);
public static final IntegerProperty REPORT_LEVEL_DESCRIPTOR
= IntegerProperty.builder("reportLevel")
.desc("Cyclomatic Complexity reporting threshold")
.min(1).max(30).defalt(10).uiOrder(1.0f).build();
public static final BooleanProperty SHOW_CLASSES_COMPLEXITY_DESCRIPTOR = new BooleanProperty(
"showClassesComplexity", "Add class average violations to the report", true, 2.0f);