aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-03-01 14:02:53 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-03-01 14:02:53 +0100
commit10b2eb451517431d02da2143cfc2958f1a9411be (patch)
tree14b1dc41abaaefc41817b5c309ed94a35366152b /sonar-plugin-api
parent98b06f726fb30465113c515e67ea2f6af49398e1 (diff)
downloadsonarqube-10b2eb451517431d02da2143cfc2958f1a9411be.tar.gz
sonarqube-10b2eb451517431d02da2143cfc2958f1a9411be.zip
SONAR-2218 improve drilldown page in order to display variations
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java7
1 files changed, 6 insertions, 1 deletions
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 80f9451ec42..f6dac6dbf82 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
@@ -259,6 +259,7 @@ public final class CoreMetrics {
.setDescription("Coverage of new/changed code")
.setDirection(Metric.DIRECTION_BETTER)
.setQualitative(true)
+ .setHidden(true)
.setDomain(DOMAIN_TESTS)
.setWorstValue(0.0)
.setBestValue(100.0)
@@ -293,6 +294,7 @@ public final class CoreMetrics {
.setDescription("New uncovered lines")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_TESTS)
+ .setHidden(true)
.setFormula(new SumChildValuesFormula(false))
.create();
@@ -313,6 +315,7 @@ public final class CoreMetrics {
.setQualitative(true)
.setWorstValue(0.0)
.setBestValue(100.0)
+ .setHidden(true)
.setDomain(DOMAIN_TESTS)
.create();
@@ -354,6 +357,7 @@ public final class CoreMetrics {
.setDescription("New uncovered conditions")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_TESTS)
+ .setHidden(true)
.setFormula(new SumChildValuesFormula(false))
.create();
@@ -370,10 +374,11 @@ public final class CoreMetrics {
public static final String NEW_BRANCH_COVERAGE_KEY = "new_branch_coverage";
public static final Metric NEW_BRANCH_COVERAGE = new Metric.Builder(NEW_BRANCH_COVERAGE_KEY, Metric.ValueType.PERCENT)
- .setName("NEw branch coverage")
+ .setName("New branch coverage")
.setDescription("Branch coverage of new/changed code")
.setDirection(Metric.DIRECTION_BETTER)
.setQualitative(true)
+ .setHidden(true)
.setDomain(DOMAIN_TESTS)
.setWorstValue(0.0)
.setBestValue(100.0)