aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-05-29 14:51:57 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-05-29 14:51:57 +0200
commitbcb214c6b92e4930d9b0de4a0e18bd60fc483e98 (patch)
treeae8f4b5df390ef9d5ba2d79eb9ffb42b61e33420 /sonar-plugin-api
parent2538e39457098a5ceec1dc59f4f79eeadb6fb121 (diff)
downloadsonarqube-bcb214c6b92e4930d9b0de4a0e18bd60fc483e98.tar.gz
sonarqube-bcb214c6b92e4930d9b0de4a0e18bd60fc483e98.zip
SONAR-4330 Move all metrics associated wih the "Rules" category to the "Issues" category and remove "Rules" category
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java29
1 files changed, 14 insertions, 15 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 30498e19c79..783a406147e 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
@@ -44,7 +44,6 @@ public final class CoreMetrics {
public static String DOMAIN_OVERALL_TESTS = "Tests (Overall)";
public static String DOMAIN_COMPLEXITY = "Complexity";
public static String DOMAIN_DOCUMENTATION = "Documentation";
- public static String DOMAIN_RULES = "Rules";
public static String DOMAIN_SCM = "SCM";
/**
@@ -1405,7 +1404,7 @@ public final class CoreMetrics {
.setDescription("Weighted Issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1415,7 +1414,7 @@ public final class CoreMetrics {
.setDescription("Rules compliance")
.setDirection(Metric.DIRECTION_BETTER)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.create();
public static final String VIOLATIONS_KEY = "violations";
@@ -1423,7 +1422,7 @@ public final class CoreMetrics {
.setDescription("Issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1433,7 +1432,7 @@ public final class CoreMetrics {
.setDescription("Blocker issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1443,7 +1442,7 @@ public final class CoreMetrics {
.setDescription("Critical issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1453,7 +1452,7 @@ public final class CoreMetrics {
.setDescription("Major issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1463,7 +1462,7 @@ public final class CoreMetrics {
.setDescription("Minor issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1473,7 +1472,7 @@ public final class CoreMetrics {
.setDescription("Info issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.create();
@@ -1483,7 +1482,7 @@ public final class CoreMetrics {
.setDescription("New Issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.setDeleteHistoricalData(true)
@@ -1494,7 +1493,7 @@ public final class CoreMetrics {
.setDescription("New Blocker issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.setDeleteHistoricalData(true)
@@ -1505,7 +1504,7 @@ public final class CoreMetrics {
.setDescription("New Critical issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.setDeleteHistoricalData(true)
@@ -1516,7 +1515,7 @@ public final class CoreMetrics {
.setDescription("New Major issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.setDeleteHistoricalData(true)
@@ -1527,7 +1526,7 @@ public final class CoreMetrics {
.setDescription("New Minor issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.setDeleteHistoricalData(true)
@@ -1538,7 +1537,7 @@ public final class CoreMetrics {
.setDescription("New Info issues")
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(true)
- .setDomain(DOMAIN_RULES)
+ .setDomain(DOMAIN_ISSUES)
.setBestValue(0.0)
.setOptimizedBestValue(true)
.setDeleteHistoricalData(true)