aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-22 12:08:33 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-23 18:00:38 +0200
commit22924e1c45de5003c55cb1031b12a0c7f951fe0e (patch)
tree0f63a8a1fc61b57c2911b26d230847e2f2bfcbc2 /sonar-plugin-api
parent79ea8743f2fc5fb7e24ee99dc76da025fd5efd7d (diff)
downloadsonarqube-22924e1c45de5003c55cb1031b12a0c7f951fe0e.tar.gz
sonarqube-22924e1c45de5003c55cb1031b12a0c7f951fe0e.zip
SONAR-6605 Move sum coverage formulas to CoverageMeasuresStep
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java26
1 files changed, 1 insertions, 25 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 802d5cec4c1..21006bfaadc 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
@@ -510,7 +510,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_BETTER)
.setQualitative(false)
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.create();
public static final String NEW_LINES_TO_COVER_KEY = "new_lines_to_cover";
@@ -519,7 +518,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setDeleteHistoricalData(true)
.create();
@@ -532,7 +530,6 @@ public final class CoreMetrics {
.setDescription("Uncovered lines")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.create();
@@ -541,7 +538,6 @@ public final class CoreMetrics {
.setDescription("Uncovered lines on new code")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.setDeleteHistoricalData(true)
.create();
@@ -568,7 +564,7 @@ public final class CoreMetrics {
.create();
/**
- *
+ *
* @deprecated since 5.2 soon to be removed
*/
@Deprecated
@@ -593,7 +589,6 @@ public final class CoreMetrics {
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")
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setHidden(true)
.create();
@@ -601,7 +596,6 @@ public final class CoreMetrics {
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")
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setDeleteHistoricalData(true)
.setHidden(true)
.create();
@@ -615,7 +609,6 @@ public final class CoreMetrics {
.setDescription("Uncovered branches")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.create();
@@ -624,7 +617,6 @@ public final class CoreMetrics {
.setDescription("Uncovered branches on new code")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.setDeleteHistoricalData(true)
.create();
@@ -740,7 +732,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_BETTER)
.setDomain(DOMAIN_INTEGRATION_TESTS)
.setQualitative(false)
- .setFormula(new SumChildValuesFormula(false))
.setHidden(true)
.create();
@@ -757,7 +748,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setDeleteHistoricalData(true)
.create();
@@ -774,7 +764,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.create();
/**
@@ -789,7 +778,6 @@ public final class CoreMetrics {
.setDescription("Uncovered lines by IT on new code")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.setDeleteHistoricalData(true)
.create();
@@ -860,7 +848,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_BETTER)
.setQualitative(false)
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setHidden(true)
.create();
@@ -875,7 +862,6 @@ public final class CoreMetrics {
public static final Metric<Integer> NEW_IT_CONDITIONS_TO_COVER = new Metric.Builder(NEW_IT_CONDITIONS_TO_COVER_KEY, "Branches to cover by IT on new code", Metric.ValueType.INT)
.setDescription("Branches to cover by Integration Tests on new code")
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setDeleteHistoricalData(true)
.setHidden(true)
.create();
@@ -892,7 +878,6 @@ public final class CoreMetrics {
.setDescription("Integration Tests uncovered conditions")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.create();
/**
@@ -908,7 +893,6 @@ public final class CoreMetrics {
.setDescription("Uncovered branches by Integration Tests on new code")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_INTEGRATION_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.setDeleteHistoricalData(true)
.create();
@@ -1036,7 +1020,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_BETTER)
.setDomain(DOMAIN_OVERALL_TESTS)
.setQualitative(false)
- .setFormula(new SumChildValuesFormula(false))
.setHidden(true)
.create();
@@ -1053,7 +1036,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setDeleteHistoricalData(true)
.create();
@@ -1070,7 +1052,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.create();
/**
@@ -1085,7 +1066,6 @@ public final class CoreMetrics {
.setDescription("New lines that are not covered by any tests")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.setDeleteHistoricalData(true)
.create();
@@ -1157,7 +1137,6 @@ public final class CoreMetrics {
.setDirection(Metric.DIRECTION_BETTER)
.setQualitative(false)
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setHidden(true)
.create();
@@ -1173,7 +1152,6 @@ public final class CoreMetrics {
Metric.ValueType.INT)
.setDescription("New branches to cover by all tests")
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setDeleteHistoricalData(true)
.setHidden(true)
.create();
@@ -1190,7 +1168,6 @@ public final class CoreMetrics {
.setDescription("Uncovered branches by all tests")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.create();
/**
@@ -1206,7 +1183,6 @@ public final class CoreMetrics {
.setDescription("New branches that are not covered by any test")
.setDirection(Metric.DIRECTION_WORST)
.setDomain(DOMAIN_OVERALL_TESTS)
- .setFormula(new SumChildValuesFormula(false))
.setBestValue(0.0)
.setDeleteHistoricalData(true)
.create();