aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-06 14:22:24 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-05-06 14:43:02 +0200
commit1c6019e505d59ca9fa1dcf8825ac6289adc4a74f (patch)
treea06ca3de2584ec4aa891525e92512c59faee9fdc /sonar-plugin-api/src/main/java/org
parent6b097b3fbe1455887febecdb6ad33c7c1a2cb676 (diff)
downloadsonarqube-1c6019e505d59ca9fa1dcf8825ac6289adc4a74f.tar.gz
sonarqube-1c6019e505d59ca9fa1dcf8825ac6289adc4a74f.zip
SONAR-5268 Hide technical metrics (complexity in classes/functions) from UI
Diffstat (limited to 'sonar-plugin-api/src/main/java/org')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java2
1 files changed, 2 insertions, 0 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 cfdecedd856..852678a40af 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
@@ -312,6 +312,7 @@ public final class CoreMetrics {
*/
public static final Metric COMPLEXITY_IN_CLASSES = new Metric.Builder(COMPLEXITY_IN_CLASSES_KEY, "Complexity in classes", Metric.ValueType.INT)
.setDescription("Cyclomatic complexity in classes")
+ .setHidden(true)
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_COMPLEXITY)
@@ -343,6 +344,7 @@ public final class CoreMetrics {
*/
public static final Metric COMPLEXITY_IN_FUNCTIONS = new Metric.Builder(COMPLEXITY_IN_FUNCTIONS_KEY, "Complexity in functions", Metric.ValueType.INT)
.setDescription("Cyclomatic complexity in functions")
+ .setHidden(true)
.setDirection(Metric.DIRECTION_WORST)
.setQualitative(false)
.setDomain(DOMAIN_COMPLEXITY)