]> source.dussan.org Git - sonarqube.git/commit
SONAR-5121 Refactor the way remediation function is defined on rules in order to...
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 21 Mar 2014 11:23:12 +0000 (12:23 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 21 Mar 2014 11:23:20 +0000 (12:23 +0100)
commitba56f1b0538711f47c0e50a4df02a1ec3fa49223
treed809659e76c949d84d2e21f90948516518506925
parentd29f5b593905df567246593e761784ba4b36296b
SONAR-5121 Refactor the way remediation function is defined on rules in order to remove the static creation and to be able to know which rule is failing when a wrong function is defined.
19 files changed:
plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java
plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
sonar-plugin-api/src/main/java/org/sonar/api/server/rule/DebtRemediationFunction.java
sonar-plugin-api/src/main/java/org/sonar/api/server/rule/DebtRemediationFunctions.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/server/rule/DefaultDebtRemediationFunction.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/server/rule/DefaultDebtRemediationFunctions.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java
sonar-plugin-api/src/test/java/org/sonar/api/batch/rule/DebtRemediationFunctionTest.java [deleted file]
sonar-plugin-api/src/test/java/org/sonar/api/batch/rule/DefaultDebtRemediationFunctionTest.java [new file with mode: 0644]
sonar-plugin-api/src/test/java/org/sonar/api/server/rule/DebtRemediationFunctionTest.java [deleted file]
sonar-plugin-api/src/test/java/org/sonar/api/server/rule/DefaultDebtRemediationFunctionTest.java [new file with mode: 0644]
sonar-plugin-api/src/test/java/org/sonar/api/server/rule/RulesDefinitionTest.java
sonar-server/src/main/java/org/sonar/server/debt/DebtRulesXMLImporter.java
sonar-server/src/main/java/org/sonar/server/rule/DeprecatedRulesDefinition.java
sonar-server/src/main/java/org/sonar/server/rule/RuleRegistration.java
sonar-server/src/test/java/org/sonar/server/debt/DebtRulesXMLImporterTest.java
sonar-server/src/test/java/org/sonar/server/rule/DeprecatedRulesDefinitionTest.java
sonar-server/src/test/java/org/sonar/server/rule/RuleRegistrationTest.java
sonar-server/src/test/resources/org/sonar/server/debt/DebtRulesXMLImporterTest/fail_to_import_linear_having_offset.xml [deleted file]