]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8329 Get rid of 'Documentation' category in the measures page
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 11 Nov 2016 16:53:49 +0000 (17:53 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 11 Nov 2016 16:53:49 +0000 (17:53 +0100)
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 72a4ec7fd026ceee794bbb451ba2a67a86330b0e..dbcafc7e600ce7248e21b71cc2f0150840fd14ed 100644 (file)
@@ -54,6 +54,10 @@ public final class CoreMetrics {
   @Deprecated
   public static String DOMAIN_OVERALL_TESTS = "Tests (Overall)";
   public static String DOMAIN_COMPLEXITY = "Complexity";
+  /**
+   * @deprecated since 6.2. Merged into {@link #DOMAIN_SIZE}
+   */
+  @Deprecated
   public static String DOMAIN_DOCUMENTATION = "Documentation";
   public static String DOMAIN_SCM = "SCM";
   public static String DOMAIN_ISSUES = "Issues";
@@ -262,28 +266,34 @@ public final class CoreMetrics {
     .setDomain(DOMAIN_SIZE)
     .create();
 
-  // --------------------------------------------------------------------------------------------------------------------
-  //
-  // DOCUMENTATION
-  //
-  // --------------------------------------------------------------------------------------------------------------------
-
+  /**
+   * Moved to Size domain since 6.2
+   */
   public static final String COMMENT_LINES_KEY = "comment_lines";
   public static final Metric<Integer> COMMENT_LINES = new Metric.Builder(COMMENT_LINES_KEY, "Comment Lines", Metric.ValueType.INT)
     .setDescription("Number of comment lines")
     .setDirection(Metric.DIRECTION_BETTER)
     .setQualitative(false)
-    .setDomain(DOMAIN_DOCUMENTATION)
+    .setDomain(DOMAIN_SIZE)
     .create();
 
+  /**
+   * Moved to Size domain since 6.2
+   */
   public static final String COMMENT_LINES_DENSITY_KEY = "comment_lines_density";
   public static final Metric<Double> COMMENT_LINES_DENSITY = new Metric.Builder(COMMENT_LINES_DENSITY_KEY, "Comments (%)", Metric.ValueType.PERCENT)
     .setDescription("Comments balanced by ncloc + comment lines")
     .setDirection(Metric.DIRECTION_BETTER)
     .setQualitative(true)
-    .setDomain(DOMAIN_DOCUMENTATION)
+    .setDomain(DOMAIN_SIZE)
     .create();
 
+  // --------------------------------------------------------------------------------------------------------------------
+  //
+  // DOCUMENTATION
+  //
+  // --------------------------------------------------------------------------------------------------------------------
+
   /**
    * @deprecated since 6.2
    * @see <a href="https://jira.sonarsource.com/browse/SONAR-8328">SONAR-8328</a>
@@ -2610,7 +2620,7 @@ public final class CoreMetrics {
    */
   public static final Metric<String> COMMENT_LINES_DATA = new Metric.Builder(COMMENT_LINES_DATA_KEY, "comment_lines_data", Metric.ValueType.DATA)
     .setHidden(true)
-    .setDomain(DOMAIN_DOCUMENTATION)
+    .setDomain(DOMAIN_SIZE)
     .create();
 
   /**