diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-25 18:02:53 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-25 18:02:53 +0100 |
commit | 0abfc8ad75bb91dceba66f9e5905268312bed038 (patch) | |
tree | 0ba58a14eb1c4aec7b1274ca84c373f718ca60fb /plugins/sonar-xoo-plugin | |
parent | e2b033fccc4e306a11b77b3632b388f556385815 (diff) | |
download | sonarqube-0abfc8ad75bb91dceba66f9e5905268312bed038.tar.gz sonarqube-0abfc8ad75bb91dceba66f9e5905268312bed038.zip |
SONAR-4908 rename RulesDefinition#setDebtCharacteristic() to setDebtSubCharacteristic()
-> better follow SQALE method
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 2 | ||||
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java | 2 |
2 files changed, 2 insertions, 2 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 8bea7cbab69..b00b46df9a1 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 @@ -52,7 +52,7 @@ public class XooRulesDefinition implements RulesDefinition { .setSeverity(Severity.MINOR); x1Rule - .setDebtCharacteristic("INTEGRATION_TESTABILITY") + .setDebtSubCharacteristic("INTEGRATION_TESTABILITY") .setDebtRemediationFunction(x1Rule.debtRemediationFunctions().linearWithOffset("1h", "30min")); x1Rule.createParam("acceptWhitespace") 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 229e07ca147..1508db93b13 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 @@ -44,7 +44,7 @@ public class XooRulesDefinitionTest { assertThat(x1.tags()).containsOnly("style", "security"); assertThat(x1.htmlDescription()).isNotEmpty(); - assertThat(x1.debtCharacteristic()).isEqualTo("INTEGRATION_TESTABILITY"); + assertThat(x1.debtSubCharacteristic()).isEqualTo("INTEGRATION_TESTABILITY"); assertThat(x1.debtRemediationFunction().type()).isEqualTo(DebtRemediationFunction.Type.LINEAR_OFFSET); assertThat(x1.debtRemediationFunction().factor()).isEqualTo("1h"); assertThat(x1.debtRemediationFunction().offset()).isEqualTo("30min"); |