aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2019-03-06 15:20:30 -0600
committerSonarTech <sonartech@sonarsource.com>2019-03-15 20:20:55 +0100
commit08570ac2688b77bfe3f2140d6cc57e0c95588981 (patch)
tree1dd3f8d8b5ae20764c15425bf3d93223769e3432 /sonar-plugin-api
parent11321c380539992f43101e2690e53baa2340efa9 (diff)
downloadsonarqube-08570ac2688b77bfe3f2140d6cc57e0c95588981.tar.gz
sonarqube-08570ac2688b77bfe3f2140d6cc57e0c95588981.zip
SONAR-11664 Remove metric 'directories'
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java11
1 files changed, 10 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 d15be6890ac..a8d6b9c34f6 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
@@ -166,10 +166,16 @@ public final class CoreMetrics {
.setDomain(DOMAIN_SIZE)
.create();
+ /**
+ * @deprecated since 7.7 - no longer computed
+ */
+ @Deprecated
public static final String DIRECTORIES_KEY = "directories";
+
/**
- * Computed by the platform.
+ * @deprecated since 7.7 - no longer computed
*/
+ @Deprecated
public static final Metric<Integer> DIRECTORIES = new Metric.Builder(DIRECTORIES_KEY, "Directories", Metric.ValueType.INT)
.setDescription("Directories")
.setDirection(Metric.DIRECTION_WORST)
@@ -177,6 +183,9 @@ public final class CoreMetrics {
.setDomain(DOMAIN_SIZE)
.create();
+ /**
+ * Computed by the platform.
+ */
public static final String FUNCTIONS_KEY = "functions";
public static final Metric<Integer> FUNCTIONS = new Metric.Builder(FUNCTIONS_KEY, "Functions", Metric.ValueType.INT)
.setDescription("Functions")