aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-02-09 00:07:24 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-02-09 01:56:03 +0400
commit4eedeb8c01eb478ef0015de0a46849d781766114 (patch)
tree48c6ea53fcc20fa6efd58594355666118fe0fe73 /sonar-plugin-api
parentfff856ad40b5a27148e6f1f48819797ae2f0c94f (diff)
downloadsonarqube-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.java21
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();
//--------------------------------------------------------------------------------------------------------------------
//