diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-11-09 14:04:49 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2015-11-10 16:33:31 +0100 |
commit | ab2df01969a95f5b46407fcd6dcceccf86686efc (patch) | |
tree | 2587fac360fd079f5d0edb2d79ec80bcdff7f74e /sonar-core | |
parent | 69095c5d5bba7d613205536af1529c750fe4547d (diff) | |
download | sonarqube-ab2df01969a95f5b46407fcd6dcceccf86686efc.tar.gz sonarqube-ab2df01969a95f5b46407fcd6dcceccf86686efc.zip |
SONAR-6991 remove duplicated_lines_density from metrics allowed in report
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java | 4 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/metric/BatchMetricsTest.java | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java b/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java index faec6be9514..c32d18eef8a 100644 --- a/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java +++ b/sonar-core/src/main/java/org/sonar/core/metric/BatchMetrics.java @@ -49,7 +49,6 @@ import static org.sonar.api.measures.CoreMetrics.DIRECTORIES; import static org.sonar.api.measures.CoreMetrics.DUPLICATED_BLOCKS; import static org.sonar.api.measures.CoreMetrics.DUPLICATED_FILES; import static org.sonar.api.measures.CoreMetrics.DUPLICATED_LINES; -import static org.sonar.api.measures.CoreMetrics.DUPLICATED_LINES_DENSITY; import static org.sonar.api.measures.CoreMetrics.FILES; import static org.sonar.api.measures.CoreMetrics.FILE_COMPLEXITY_DISTRIBUTION; import static org.sonar.api.measures.CoreMetrics.FUNCTIONS; @@ -88,7 +87,7 @@ import static org.sonar.api.measures.CoreMetrics.UNCOVERED_CONDITIONS; import static org.sonar.api.measures.CoreMetrics.UNCOVERED_LINES; /** - * This class is used to know the list of metrics that can be send in the batch report. + * This class is used to know the list of metrics that can be sent in the batch report. * <p/> * The batch should not send other metrics, and the Compute Engine should not allow other metrics. */ @@ -120,7 +119,6 @@ public class BatchMetrics { DUPLICATED_LINES, DUPLICATED_BLOCKS, DUPLICATED_FILES, - DUPLICATED_LINES_DENSITY, COMPLEXITY, COMPLEXITY_IN_CLASSES, diff --git a/sonar-core/src/test/java/org/sonar/core/metric/BatchMetricsTest.java b/sonar-core/src/test/java/org/sonar/core/metric/BatchMetricsTest.java index 810e0758916..665191a896a 100644 --- a/sonar-core/src/test/java/org/sonar/core/metric/BatchMetricsTest.java +++ b/sonar-core/src/test/java/org/sonar/core/metric/BatchMetricsTest.java @@ -37,7 +37,7 @@ public class BatchMetricsTest { @Test public void check_number_of_allowed_core_metrics() throws Exception { - assertThat(SENSOR_METRICS_WITHOUT_METRIC_PLUGIN.getMetrics()).hasSize(53); + assertThat(SENSOR_METRICS_WITHOUT_METRIC_PLUGIN.getMetrics()).hasSize(52); } @Test |