From: Simon Brandhof Date: Tue, 26 Jul 2011 08:29:49 +0000 (+0200) Subject: SONAR-2634 new_*_violations and *_violations metrics are not qualitative X-Git-Tag: 2.10~88 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60d8f5f0cc60308c5a291f35e39cbccd4e36b888;p=sonarqube.git SONAR-2634 new_*_violations and *_violations metrics are not qualitative --- 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 d46d30179c3..f19ec3b2b91 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 @@ -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)