]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2634 new_*_violations and *_violations metrics are not qualitative
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 26 Jul 2011 08:29:49 +0000 (10:29 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 26 Jul 2011 08:29:49 +0000 (10:29 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index d46d30179c385b2da74810f36bace035fda3f250..f19ec3b2b912034e0d81864d9e91b4f1bb3cf2f3 100644 (file)
@@ -762,7 +762,7 @@ public final class CoreMetrics {
   public static final Metric BLOCKER_VIOLATIONS = new Metric.Builder(BLOCKER_VIOLATIONS_KEY, "Blocker violations", Metric.ValueType.INT)
       .setDescription("Blocker violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -772,7 +772,7 @@ public final class CoreMetrics {
   public static final Metric CRITICAL_VIOLATIONS = new Metric.Builder(CRITICAL_VIOLATIONS_KEY, "Critical violations", Metric.ValueType.INT)
       .setDescription("Critical violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -782,7 +782,7 @@ public final class CoreMetrics {
   public static final Metric MAJOR_VIOLATIONS = new Metric.Builder(MAJOR_VIOLATIONS_KEY, "Major violations", Metric.ValueType.INT)
       .setDescription("Major violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -792,7 +792,7 @@ public final class CoreMetrics {
   public static final Metric MINOR_VIOLATIONS = new Metric.Builder(MINOR_VIOLATIONS_KEY, "Minor violations", Metric.ValueType.INT)
       .setDescription("Minor violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -802,7 +802,7 @@ public final class CoreMetrics {
   public static final Metric INFO_VIOLATIONS = new Metric.Builder(INFO_VIOLATIONS_KEY, "Info violations", Metric.ValueType.INT)
       .setDescription("Info violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -812,7 +812,7 @@ public final class CoreMetrics {
   public static final Metric NEW_VIOLATIONS = new Metric.Builder(NEW_VIOLATIONS_KEY, "New Violations", Metric.ValueType.INT)
       .setDescription("New Violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -822,7 +822,7 @@ public final class CoreMetrics {
   public static final Metric NEW_BLOCKER_VIOLATIONS = new Metric.Builder(NEW_BLOCKER_VIOLATIONS_KEY, "New Blocker violations", Metric.ValueType.INT)
       .setDescription("New Blocker violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -832,7 +832,7 @@ public final class CoreMetrics {
   public static final Metric NEW_CRITICAL_VIOLATIONS = new Metric.Builder(NEW_CRITICAL_VIOLATIONS_KEY, "New Critical violations", Metric.ValueType.INT)
       .setDescription("New Critical violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -842,7 +842,7 @@ public final class CoreMetrics {
   public static final Metric NEW_MAJOR_VIOLATIONS = new Metric.Builder(NEW_MAJOR_VIOLATIONS_KEY, "New Major violations", Metric.ValueType.INT)
       .setDescription("New Major violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -852,7 +852,7 @@ public final class CoreMetrics {
   public static final Metric NEW_MINOR_VIOLATIONS = new Metric.Builder(NEW_MINOR_VIOLATIONS_KEY, "New Minor violations", Metric.ValueType.INT)
       .setDescription("New Minor violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)
@@ -862,7 +862,7 @@ public final class CoreMetrics {
   public static final Metric NEW_INFO_VIOLATIONS = new Metric.Builder(NEW_INFO_VIOLATIONS_KEY, "New Info violations", Metric.ValueType.INT)
       .setDescription("New Info violations")
       .setDirection(Metric.DIRECTION_WORST)
-      .setQualitative(true)
+      .setQualitative(false)
       .setDomain(DOMAIN_RULES)
       .setBestValue(0.0)
       .setOptimizedBestValue(true)