diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 6 | ||||
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java index f93a5eaba5b..fd0bb0aa9ee 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java @@ -50,7 +50,7 @@ public class XooRulesDefinition implements RulesDefinition { .setHtmlDescription("Generate an issue on each line of a file. It requires the metric \"lines\"."); oneIssuePerLine .setDebtRemediationFunction(hasTag.debtRemediationFunctions().linear("1min")) - .setEffortToFixDescription("It takes about 1 minute to an experienced software craftsman to remove a line of code"); + .setGapDescription("It takes about 1 minute to an experienced software craftsman to remove a line of code"); repo.done(); } @@ -80,7 +80,7 @@ public class XooRulesDefinition implements RulesDefinition { .setHtmlDescription("Generate an issue on each line of a file. It requires the metric \"lines\"."); oneIssuePerLine .setDebtRemediationFunction(hasTag.debtRemediationFunctions().linear("1min")) - .setEffortToFixDescription("It takes about 1 minute to an experienced software craftsman to remove a line of code"); + .setGapDescription("It takes about 1 minute to an experienced software craftsman to remove a line of code"); repo.createRule(OneIssueOnDirPerFileSensor.RULE_KEY).setName("One Issue On Dir Per File") .setHtmlDescription("Generate issues on directories"); @@ -97,7 +97,7 @@ public class XooRulesDefinition implements RulesDefinition { .setHtmlDescription("Generate an issue on each module"); oneIssuePerModule .setDebtRemediationFunction(hasTag.debtRemediationFunctions().linearWithOffset("25min", "1h")) - .setEffortToFixDescription("A certified architect will need roughly half an hour to start working on removal of modules, " + + .setGapDescription("A certified architect will need roughly half an hour to start working on removal of modules, " + "then it's about one hour per module."); repo.createRule(OneBlockerIssuePerFileSensor.RULE_KEY).setName("One Blocker Issue Per File") diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java index 985bf936dff..9da06081645 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java @@ -47,9 +47,9 @@ public class XooRulesDefinitionTest { RulesDefinition.Rule rule = repo.rule(OneIssuePerLineSensor.RULE_KEY); assertThat(rule.name()).isNotEmpty(); assertThat(rule.debtRemediationFunction().type()).isEqualTo(DebtRemediationFunction.Type.LINEAR); - assertThat(rule.debtRemediationFunction().coefficient()).isEqualTo("1min"); - assertThat(rule.debtRemediationFunction().offset()).isNull(); - assertThat(rule.effortToFixDescription()).isNotEmpty(); + assertThat(rule.debtRemediationFunction().gapMultiplier()).isEqualTo("1min"); + assertThat(rule.debtRemediationFunction().baseEffort()).isNull(); + assertThat(rule.gapDescription()).isNotEmpty(); } @Test |