]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9526 Make coverage metrics visible
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 3 Oct 2017 12:13:06 +0000 (14:13 +0200)
committerTeryk Bellahsene <teryk@users.noreply.github.com>
Thu, 5 Oct 2017 09:21:25 +0000 (11:21 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 6836036b1981e6a4233e8d16d9f40b76c5d55633..4f83f491f7ed5f334982e56fca95035fa92b51db 100644 (file)
@@ -673,18 +673,16 @@ public final class CoreMetrics {
   /**
    * Use {@link CoverageMeasuresBuilder} to build measure for this metric.
    */
-  public static final Metric<Integer> CONDITIONS_TO_COVER = new Metric.Builder(CONDITIONS_TO_COVER_KEY, "Branches to Cover", Metric.ValueType.INT)
-    .setDescription("Branches to cover")
+  public static final Metric<Integer> CONDITIONS_TO_COVER = new Metric.Builder(CONDITIONS_TO_COVER_KEY, "Conditions to Cover", Metric.ValueType.INT)
+    .setDescription("Conditions to cover")
     .setDomain(DOMAIN_COVERAGE)
-    .setHidden(true)
     .create();
 
   public static final String NEW_CONDITIONS_TO_COVER_KEY = "new_conditions_to_cover";
-  public static final Metric<Integer> NEW_CONDITIONS_TO_COVER = new Metric.Builder(NEW_CONDITIONS_TO_COVER_KEY, "Branches to Cover on New Code", Metric.ValueType.INT)
-    .setDescription("Branches to cover on New Code")
+  public static final Metric<Integer> NEW_CONDITIONS_TO_COVER = new Metric.Builder(NEW_CONDITIONS_TO_COVER_KEY, "Conditions to Cover on New Code", Metric.ValueType.INT)
+    .setDescription("Conditions to cover on new code")
     .setDomain(DOMAIN_COVERAGE)
     .setDeleteHistoricalData(true)
-    .setHidden(true)
     .create();
 
   public static final String UNCOVERED_CONDITIONS_KEY = "uncovered_conditions";