aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/index
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-01-16 00:09:04 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-01-16 00:27:08 +0100
commit640f9c74ea381aa45d5e92d00d79029471195992 (patch)
treecd95c13fb500a2cda5812ab5d8eed2f05c8050a2 /sonar-batch/src/main/java/org/sonar/batch/index
parent445ac3e5a16c86d8906e82567657fefdb30d50e1 (diff)
downloadsonarqube-640f9c74ea381aa45d5e92d00d79029471195992.tar.gz
sonarqube-640f9c74ea381aa45d5e92d00d79029471195992.zip
SONAR-5077 Lines metric is computed by the core
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/index')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java
index 64886cc1529..eeb37de63ed 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java
@@ -87,7 +87,7 @@ public class DefaultIndex extends SonarIndex {
CoreMetrics.FILE_FEEDBACK_EDGES,
CoreMetrics.FILE_TANGLE_INDEX,
CoreMetrics.FILE_TANGLES,
- // Computed by ScmActivitySensor
+ // Computed by ScmSensor
CoreMetrics.SCM_AUTHORS_BY_LINE,
CoreMetrics.SCM_LAST_COMMIT_DATETIMES_BY_LINE,
CoreMetrics.SCM_REVISIONS_BY_LINE,
@@ -96,7 +96,9 @@ public class DefaultIndex extends SonarIndex {
CoreMetrics.DUPLICATION_LINES_DATA,
CoreMetrics.DUPLICATED_FILES,
CoreMetrics.DUPLICATED_LINES,
- CoreMetrics.DUPLICATED_BLOCKS
+ CoreMetrics.DUPLICATED_BLOCKS,
+ // Computed by LinesSensor
+ CoreMetrics.LINES
);
private final ResourceCache resourceCache;
@@ -256,7 +258,7 @@ public class DefaultIndex extends SonarIndex {
throw new SonarException("Unknown metric: " + measure.getMetricKey());
}
if (!isTechnicalProjectCopy(resource) && !measure.isFromCore() && INTERNAL_METRICS.contains(metric)) {
- LOG.debug("Metric " + metric.key() + " is an internal metric computed by SonarQube. Please update your plugin.");
+ LOG.debug("Metric " + metric.key() + " is an internal metric computed by SonarQube. Provided value is ignored.");
return measure;
}
if (measureCache.contains(resource, measure)) {