]> 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:05:17 +0000 (09:05 +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 ebe79311938da36071913d18d874ccbc2f84ddfa..e3172e5870cab6d53db1744a601a5548662ad573 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 d55b7487104555a050f6609b45f4e8a1378b18ba..d39add1e0408c7ffc51cb4a3eabb56c26fb53284 100644 (file)
@@ -1344,16 +1344,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)
@@ -1361,7 +1353,6 @@ public final class CoreMetrics {
     .setDomain(DOMAIN_ISSUES)
     .setBestValue(0.0)
     .setOptimizedBestValue(true)
-    .setHidden(true)
     .create();
 
   /**