]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3412 Remove zero values from drilldowns of package/file cycles
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Apr 2012 10:06:29 +0000 (12:06 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 12 Apr 2012 10:06:29 +0000 (12:06 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 10d1520a2df7db033b30faa3f0cc9f120a2e508d..ca742701dec00eac4cdb0aa07c95c2cdfc0b9dec 100644 (file)
@@ -1396,6 +1396,7 @@ public final class CoreMetrics {
       .setDirection(Metric.DIRECTION_WORST)
       .setQualitative(true)
       .setDomain(DOMAIN_DESIGN)
+      .setBestValue(0.0)
       .setFormula(new SumChildValuesFormula(false))
       .create();
 
@@ -1404,6 +1405,7 @@ public final class CoreMetrics {
       .setDescription("Package tangle index")
       .setDirection(Metric.DIRECTION_WORST)
       .setQualitative(true)
+      .setBestValue(0.0)
       .setDomain(DOMAIN_DESIGN)
       .create();
 
@@ -1423,6 +1425,7 @@ public final class CoreMetrics {
       .setQualitative(false)
       .setDomain(DOMAIN_DESIGN)
       .setFormula(new SumChildValuesFormula(false))
+      .setBestValue(0.0)
       .create();
 
   public static final String PACKAGE_EDGES_WEIGHT_KEY = "package_edges_weight";
@@ -1444,6 +1447,7 @@ public final class CoreMetrics {
       .setDomain(DOMAIN_DESIGN)
       .setHidden(true)
       .setDeleteHistoricalData(true)
+      .setBestValue(0.0)
       .create();
 
   public static final String FILE_TANGLE_INDEX_KEY = "file_tangle_index";
@@ -1454,6 +1458,7 @@ public final class CoreMetrics {
       .setDomain(DOMAIN_DESIGN)
       .setHidden(true)
       .setDeleteHistoricalData(true)
+      .setBestValue(0.0)
       .create();
 
   public static final String FILE_TANGLES_KEY = "file_tangles";
@@ -1474,6 +1479,7 @@ public final class CoreMetrics {
       .setDomain(DOMAIN_DESIGN)
       .setHidden(true)
       .setDeleteHistoricalData(true)
+      .setBestValue(0.0)
       .create();
 
   public static final String FILE_EDGES_WEIGHT_KEY = "file_edges_weight";