aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-09-29 16:23:43 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-09-29 16:27:28 +0200
commit0a4e94a68146de71fc7de06d6bc8e6c0966e7b98 (patch)
tree59c145279af636c23d69d8d8555733007618d37f /sonar-batch/src
parent5e6e2338a4395fc2042e92f356a73a6130a20606 (diff)
downloadsonarqube-0a4e94a68146de71fc7de06d6bc8e6c0966e7b98.tar.gz
sonarqube-0a4e94a68146de71fc7de06d6bc8e6c0966e7b98.zip
SONAR-5672 Special case for views plugin
Diffstat (limited to 'sonar-batch/src')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java2
1 files changed, 1 insertions, 1 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 70393580638..3d8a291d9dd 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
@@ -215,7 +215,7 @@ public class DefaultIndex extends SonarIndex {
if (metric == null) {
throw new SonarException("Unknown metric: " + measure.getMetricKey());
}
- if (DefaultSensorContext.INTERNAL_METRICS.contains(metric)) {
+ if (!Qualifiers.isView(resource, true) && DefaultSensorContext.INTERNAL_METRICS.contains(metric)) {
LOG.warn("Metric " + metric.key() + " is an internal metric computed by SonarQube. Please update your plugin.");
return measure;
}