diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-31 17:53:02 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-01 19:16:00 +0100 |
commit | f008d164395a01e34f0cd0da3d3a7e76fd8bca3f (patch) | |
tree | 95001db9837cdd71a0d2b598de147eae96268f7e /sonar-plugin-api | |
parent | 81928180ce26c452c38d9c060e0f79cf4f3b47f7 (diff) | |
download | sonarqube-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.java | 2 |
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"; |