aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-01-31 17:53:02 +0100
committerFabrice Bellingard <bellingard@gmail.com>2012-02-01 19:16:00 +0100
commitf008d164395a01e34f0cd0da3d3a7e76fd8bca3f (patch)
tree95001db9837cdd71a0d2b598de147eae96268f7e /sonar-plugin-api
parent81928180ce26c452c38d9c060e0f79cf4f3b47f7 (diff)
downloadsonarqube-f008d164395a01e34f0cd0da3d3a7e76fd8bca3f.tar.gz
sonarqube-f008d164395a01e34f0cd0da3d3a7e76fd8bca3f.zip
SONAR-3228 Set the wieghted_violations metric's best value to 0
=> To optimize the number of entries persisted in the DB
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java
index 33f91b7db5f..e178bb90e21 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java
@@ -1026,6 +1026,8 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
.setDomain(DOMAIN_RULES)
+ .setBestValue(0.0)
+ .setOptimizedBestValue(true)
.create();
public static final String VIOLATIONS_DENSITY_KEY = "violations_density";