]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5124 The "Weighted Issues" metric should not be deprecated anymore
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 12 Mar 2014 08:04:23 +0000 (09:04 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 12 Mar 2014 08:04:23 +0000 (09:04 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/WeightedIssuesDecorator.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 64f8f309e790a07e0d7e949e56ad160e6fd7da3c..bcd4092b6c4d372e85cb581d001ee46e1815cc27 100644 (file)
@@ -48,7 +48,7 @@ import java.util.Map;
     key = CoreProperties.CORE_RULE_WEIGHTS_PROPERTY,
     defaultValue = CoreProperties.CORE_RULE_WEIGHTS_DEFAULT_VALUE,
     name = "Rules weight",
-    description = "A weight is associated to each severity to calculate the Rules Compliance Index.",
+    description = "A weight is associated to each severity to emphasize the most critical issues.",
     project = false,
     global = true,
     category = CoreProperties.CATEGORY_GENERAL)
index a6b5b38c76a6038ee6ecedb5a5de17164c767946..9abac1e030d34bbe08bec55649b6c5c32c2ae3ce 100644 (file)
@@ -1348,16 +1348,8 @@ public final class CoreMetrics {
   //
   // --------------------------------------------------------------------------------------------------------------------
 
-  /**
-   * @deprecated since 4.0. See SONAR-4755
-   */
-  @Deprecated
   public static final String WEIGHTED_VIOLATIONS_KEY = "weighted_violations";
 
-  /**
-   * @deprecated since 4.0. See SONAR-4755
-   */
-  @Deprecated
   public static final Metric WEIGHTED_VIOLATIONS = new Metric.Builder(WEIGHTED_VIOLATIONS_KEY, "Weighted issues", Metric.ValueType.INT)
     .setDescription("Weighted Issues")
     .setDirection(Metric.DIRECTION_WORST)
@@ -1365,7 +1357,6 @@ public final class CoreMetrics {
     .setDomain(DOMAIN_ISSUES)
     .setBestValue(0.0)
     .setOptimizedBestValue(true)
-    .setHidden(true)
     .create();
 
   /**