diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-03-08 21:47:03 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-03-10 15:20:55 +0100 |
commit | b669aac1e3848a1e4c945c0ab09591a6171a8b5a (patch) | |
tree | 87d8a2b5f6e919047b3341deefd36b12c1f6f623 /plugins | |
parent | 66af03fd25ea718f34548e449f95d5601d2e9aa2 (diff) | |
download | sonarqube-b669aac1e3848a1e4c945c0ab09591a6171a8b5a.tar.gz sonarqube-b669aac1e3848a1e4c945c0ab09591a6171a8b5a.zip |
SONAR-7453 Rename rules remediation function fields in API
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 |