From: Evgeny Mandrikov Date: Mon, 3 Sep 2012 08:11:01 +0000 (+0600) Subject: SONAR-3768 Deprecate metric comment_blank_lines X-Git-Tag: 3.3~330 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69da96fb7f02be9564d52b571ef18c18a1c1d060;p=sonarqube.git SONAR-3768 Deprecate metric comment_blank_lines --- 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 f5cca2cf7e0..9ac19fe6034 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 @@ -221,7 +221,16 @@ public final class CoreMetrics { .setDomain(DOMAIN_DOCUMENTATION) .create(); + /** + * @deprecated since 3.3 - see SONAR-3768 + */ + @Deprecated public static final String COMMENT_BLANK_LINES_KEY = "comment_blank_lines"; + + /** + * @deprecated since 3.3 - see SONAR-3768 + */ + @Deprecated public static final Metric COMMENT_BLANK_LINES = new Metric.Builder(COMMENT_BLANK_LINES_KEY, "Blank comments", Metric.ValueType.INT) .setDescription("Comments that do not contain comments") .setDirection(Metric.DIRECTION_WORST) @@ -1004,11 +1013,10 @@ public final class CoreMetrics { /** * Information about duplications, which is represented as an XML string. - *
- *
+ *

* Here is the format (since Sonar 2.12): - *

   {@code
-   *   
+   * 
+   *   {@code
    *     
    *     
    *       
@@ -1018,6 +1026,7 @@ public final class CoreMetrics {
    *     ...
    *   }
    * 
+ *

*/ public static final Metric DUPLICATIONS_DATA = new Metric.Builder(DUPLICATIONS_DATA_KEY, "Duplications details", Metric.ValueType.DATA) .setDescription("Duplications details")