aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-21 10:25:23 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-21 10:31:39 +0200
commit7939654552821021be874e90bf0b65dda5af528e (patch)
tree1c367488b20fd1ef1995779f0f3c0cbf0405ff61 /sonar-core
parent8b1835860ef2b530c18a57c9385f6c3e9f15c850 (diff)
downloadsonarqube-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.java4
-rw-r--r--sonar-core/src/test/java/org/sonar/core/metric/SensorMetricsTest.java2
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