diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-11 14:03:56 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-11 14:38:08 +0200 |
commit | 957818db94c251bbee7a0af18365d772065e9f1d (patch) | |
tree | df05a9030f3238be4b45bfba98a79d0410ed171a /sonar-plugin-api | |
parent | 7d877415c56034464e077c5323d17a0efc9c597a (diff) | |
download | sonarqube-957818db94c251bbee7a0af18365d772065e9f1d.tar.gz sonarqube-957818db94c251bbee7a0af18365d772065e9f1d.zip |
Revert "SONAR-4753 Compute the new "Technical Debt Density" metric"
This reverts commit 5e91ad15421776a8ae778c4a49a5118c7ec214a4.
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java | 16 | ||||
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/resources/CoreMetricsTest.java | 6 |
2 files changed, 2 insertions, 20 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java index 11937aa974e..5851311aeb4 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java @@ -2055,22 +2055,6 @@ public final class CoreMetrics { .setQualitative(true) .create(); - /** - * @since 4.0 - */ - public static final String TECHNICAL_DEBT_DENSITY_KEY = "technical_debt_density"; - - /** - * @since 4.0 - */ - public static final Metric TECHNICAL_DEBT_DENSITY = new Metric.Builder(TECHNICAL_DEBT_DENSITY_KEY, "Technical Debt Density", Metric.ValueType.FLOAT) - .setDomain(DOMAIN_TECHNICAL_DEBT) - .setDirection(Metric.DIRECTION_WORST) - .setOptimizedBestValue(true) - .setBestValue(0.0) - .setQualitative(true) - .create(); - // -------------------------------------------------------------------------------------------------------------------- // diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/resources/CoreMetricsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/resources/CoreMetricsTest.java index 896ab872ea7..14abb67a8be 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/resources/CoreMetricsTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/resources/CoreMetricsTest.java @@ -28,12 +28,10 @@ import java.util.List; import static org.fest.assertions.Assertions.assertThat; public class CoreMetricsTest { - @Test - public void read_metrics_from_class_reflection() { + public void shouldReadMetricsFromClassReflection() { List<Metric> metrics = CoreMetrics.getMetrics(); - assertThat(metrics).hasSize(150); + assertThat(metrics).hasSize(149); assertThat(metrics).contains(CoreMetrics.NCLOC, CoreMetrics.DIRECTORIES); } - } |