aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-04-25 15:45:08 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-04-25 15:45:16 +0200
commit433fc34a5a8513fe80dc6cd8ad758afde5bfd0a7 (patch)
tree38970e694ee89e140a546283bd129aac262e18c6 /sonar-plugin-api/src
parent88132bee081c22e3bad8265a3218bf853244aaa0 (diff)
downloadsonarqube-433fc34a5a8513fe80dc6cd8ad758afde5bfd0a7.tar.gz
sonarqube-433fc34a5a8513fe80dc6cd8ad758afde5bfd0a7.zip
SONAR-4927 Add Quality Gate widget
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java4
1 files changed, 3 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 7ff4bb07bec..f1c7f33a454 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
@@ -2202,8 +2202,10 @@ public final class CoreMetrics {
.create();
public static final String QUALITY_GATE_DETAILS_KEY = "quality_gate_details";
- public static final Metric QUALITY_GATE_DETAILS = new Metric.Builder(QUALITY_GATE_DETAILS_KEY, "Quality Gate Details", Metric.ValueType.DATA)
+ public static final Metric QUALITY_GATE_DETAILS = new Metric.Builder(QUALITY_GATE_DETAILS_KEY, "Quality Gate Details", Metric.ValueType.LEVEL)
.setDescription("The project detailed status with regard to its quality gate.")
+ .setDirection(Metric.DIRECTION_BETTER)
+ .setQualitative(true)
.setDomain(DOMAIN_GENERAL)
.create();