diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-09 00:07:24 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-09 01:56:03 +0400 |
commit | 4eedeb8c01eb478ef0015de0a46849d781766114 (patch) | |
tree | 48c6ea53fcc20fa6efd58594355666118fe0fe73 /sonar-plugin-api | |
parent | fff856ad40b5a27148e6f1f48819797ae2f0c94f (diff) | |
download | sonarqube-4eedeb8c01eb478ef0015de0a46849d781766114.tar.gz sonarqube-4eedeb8c01eb478ef0015de0a46849d781766114.zip |
SONAR-3210 Compute new measure for Java files - LoC in file
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java | 21 |
1 files changed, 21 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 acdf5c3c225..45d1bd15619 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 @@ -19,6 +19,7 @@ */ package org.sonar.api.measures; +import com.google.common.annotations.Beta; import com.google.common.collect.Lists; import org.apache.commons.lang.StringUtils; import org.sonar.api.resources.Scopes; @@ -1637,6 +1638,26 @@ public final class CoreMetrics { .setOptimizedBestValue(true) .create(); + // -------------------------------------------------------------------------------------------------------------------- + // + // FILE DATA + // + // -------------------------------------------------------------------------------------------------------------------- + + /** + * @since 2.14 + */ + @Beta + public static final String NCLOC_DATA_KEY = "ncloc_data"; + + /** + * @since 2.14 + */ + @Beta + public static final Metric NCLOC_DATA = new Metric.Builder(NCLOC_DATA_KEY, "ncloc_data", Metric.ValueType.DATA) + .setHidden(true) + .setDomain(DOMAIN_SIZE) + .create(); //-------------------------------------------------------------------------------------------------------------------- // |