diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-21 10:25:23 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-07-21 10:31:39 +0200 |
commit | 7939654552821021be874e90bf0b65dda5af528e (patch) | |
tree | 1c367488b20fd1ef1995779f0f3c0cbf0405ff61 /sonar-core | |
parent | 8b1835860ef2b530c18a57c9385f6c3e9f15c850 (diff) | |
download | sonarqube-7939654552821021be874e90bf0b65dda5af528e.tar.gz sonarqube-7939654552821021be874e90bf0b65dda5af528e.zip |
Allow COMMENTED_OUT_CODE_LINES and PACKAGES to be send by the batch
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java | 4 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/metric/SensorMetricsTest.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java b/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java index d4f311fd5d7..100a4282172 100644 --- a/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java +++ b/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java @@ -35,6 +35,7 @@ import org.sonar.api.server.ServerSide; import static org.sonar.api.measures.CoreMetrics.ACCESSORS; import static org.sonar.api.measures.CoreMetrics.CLASSES; +import static org.sonar.api.measures.CoreMetrics.COMMENTED_OUT_CODE_LINES; import static org.sonar.api.measures.CoreMetrics.COMMENT_LINES; import static org.sonar.api.measures.CoreMetrics.COMMENT_LINES_DATA; import static org.sonar.api.measures.CoreMetrics.COMPLEXITY; @@ -74,6 +75,7 @@ import static org.sonar.api.measures.CoreMetrics.OVERALL_COVERED_CONDITIONS_BY_L import static org.sonar.api.measures.CoreMetrics.OVERALL_LINES_TO_COVER; import static org.sonar.api.measures.CoreMetrics.OVERALL_UNCOVERED_CONDITIONS; import static org.sonar.api.measures.CoreMetrics.OVERALL_UNCOVERED_LINES; +import static org.sonar.api.measures.CoreMetrics.PACKAGES; import static org.sonar.api.measures.CoreMetrics.PUBLIC_API; import static org.sonar.api.measures.CoreMetrics.PUBLIC_UNDOCUMENTED_API; import static org.sonar.api.measures.CoreMetrics.QUALITY_PROFILES; @@ -103,6 +105,7 @@ public class SensorMetrics { NCLOC_DATA, GENERATED_NCLOC, NCLOC_LANGUAGE_DISTRIBUTION, + COMMENTED_OUT_CODE_LINES, COMMENT_LINES, COMMENT_LINES_DATA, @@ -111,6 +114,7 @@ public class SensorMetrics { PUBLIC_UNDOCUMENTED_API, FILES, + PACKAGES, DIRECTORIES, CLASSES, FUNCTIONS, diff --git a/sonar-core/src/test/java/org/sonar/core/metric/SensorMetricsTest.java b/sonar-core/src/test/java/org/sonar/core/metric/SensorMetricsTest.java index 332e5eff7f8..caaec7bdf2f 100644 --- a/sonar-core/src/test/java/org/sonar/core/metric/SensorMetricsTest.java +++ b/sonar-core/src/test/java/org/sonar/core/metric/SensorMetricsTest.java @@ -37,7 +37,7 @@ public class SensorMetricsTest { @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(55); } @Test |