]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3239 Depreciate the paragraph metrics
authorFabrice Bellingard <bellingard@gmail.com>
Thu, 9 Feb 2012 16:36:09 +0000 (17:36 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Thu, 9 Feb 2012 16:38:15 +0000 (17:38 +0100)
Namely:
- PARAGRAPHS
- PARAGRAPH_COMPLEXITY
- PARAGRAPH_COMPLEXITY_DISTRIBUTION

sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index a8f657d0373da4f64ec6f62ff89684e71996b098..282d82e6ea6f1ac2b9627ee1b60be13e9a260623 100644 (file)
@@ -148,7 +148,15 @@ public final class CoreMetrics {
       .setFormula(new SumChildValuesFormula(false))
       .create();
 
+  /**
+   * @deprecated since Sonar 2.14 - See SONAR-3239
+   */
+  @Deprecated
   public static final String PARAGRAPHS_KEY = "paragraphs";
+  /**
+   * @deprecated since Sonar 2.14 - See SONAR-3239
+   */
+  @Deprecated
   public static final Metric PARAGRAPHS = new Metric.Builder(PARAGRAPHS_KEY, "Paragraphs", Metric.ValueType.INT)
       .setDescription("Number of paragraphs")
       .setDirection(Metric.DIRECTION_WORST)
@@ -287,7 +295,15 @@ public final class CoreMetrics {
       .setFormula(new AverageComplexityFormula(CoreMetrics.FILES))
       .create();
 
+  /**
+   * @deprecated since Sonar 2.14 - See SONAR-3239
+   */
+  @Deprecated
   public static final String PARAGRAPH_COMPLEXITY_KEY = "paragraph_complexity";
+  /**
+   * @deprecated since Sonar 2.14 - See SONAR-3239
+   */
+  @Deprecated
   public static final Metric PARAGRAPH_COMPLEXITY = new Metric.Builder(PARAGRAPH_COMPLEXITY_KEY, "Complexity /paragraph", Metric.ValueType.FLOAT)
       .setDescription("Complexity average by paragraph")
       .setDirection(Metric.DIRECTION_WORST)
@@ -323,7 +339,15 @@ public final class CoreMetrics {
       .setFormula(new SumChildDistributionFormula().setMinimumScopeToPersist(Scopes.DIRECTORY))
       .create();
 
+  /**
+   * @deprecated since Sonar 2.14 - See SONAR-3239
+   */
+  @Deprecated
   public static final String PARAGRAPH_COMPLEXITY_DISTRIBUTION_KEY = "paragraph_complexity_distribution";
+  /**
+   * @deprecated since Sonar 2.14 - See SONAR-3239
+   */
+  @Deprecated
   public static final Metric PARAGRAPH_COMPLEXITY_DISTRIBUTION = new Metric.Builder(PARAGRAPH_COMPLEXITY_DISTRIBUTION_KEY, "Paragraph distribution /complexity", Metric.ValueType.DISTRIB)
       .setDescription("Paragraph distribution /complexity")
       .setDirection(Metric.DIRECTION_NONE)