aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-05-30 01:11:56 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-05-30 01:11:56 +0400
commit78b3c4c0badeadef7bed763a15cd9e3318a4fb3e (patch)
tree4c392dd282d06d3032ac45f90de44f79f5bce7d1
parenta44965f6bdee2dcb6b96b7a0cae1ef2a1f8604c9 (diff)
downloadsonarqube-78b3c4c0badeadef7bed763a15cd9e3318a4fb3e.tar.gz
sonarqube-78b3c4c0badeadef7bed763a15cd9e3318a4fb3e.zip
SONAR-2485 Best value should be set for lcom4 to 1
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java1
1 files changed, 1 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 2cf3d598b40..9dd426c6066 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
@@ -939,6 +939,7 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
.setDomain(DOMAIN_DESIGN)
+ .setBestValue(1.0)
.setFormula(new WeightedMeanAggregationFormula(CoreMetrics.FILES, false))
.create();