]> source.dussan.org Git - sonarqube.git/commitdiff
the metric public_undocumented_api must not have a worst value
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 10 Dec 2010 17:55:40 +0000 (17:55 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 10 Dec 2010 17:55:40 +0000 (17:55 +0000)
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 4c812dcc659893e310c381bf9b548fed7b007535..e5533d3937b5a3ccfe61dbd7f7efb4b38ec9790b 100644 (file)
@@ -171,7 +171,7 @@ public final class CoreMetrics {
   public static final String PUBLIC_UNDOCUMENTED_API_KEY = "public_undocumented_api";
   public static final Metric PUBLIC_UNDOCUMENTED_API = new Metric(PUBLIC_UNDOCUMENTED_API_KEY, "Public undocumented API",
       "Public undocumented classes, methods and variables", Metric.ValueType.INT, Metric.DIRECTION_WORST, true, DOMAIN_DOCUMENTATION)
-      .setWorstValue(100.0).setBestValue(0.0).setDirection(Metric.DIRECTION_WORST).setOptimizedBestValue(true).setFormula(
+      .setBestValue(0.0).setDirection(Metric.DIRECTION_WORST).setOptimizedBestValue(true).setFormula(
           new SumChildValuesFormula(false));
 
   public static final String COMMENTED_OUT_CODE_LINES_KEY = "commented_out_code_lines";