aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-10-02 20:52:35 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-10-02 21:12:28 +0200
commit829c0fe76a387e5e430b7432037b65c4154f27f1 (patch)
tree8b1f383552d5431215d4ee4b123c08cdffa1d6e1 /sonar-plugin-api
parent475074d8d4d7a3e6e8f811cae891207ac7b1c1c5 (diff)
downloadsonarqube-829c0fe76a387e5e430b7432037b65c4154f27f1.tar.gz
sonarqube-829c0fe76a387e5e430b7432037b65c4154f27f1.zip
SONAR-6824 mark new metric "last_commit_date" as hidden in UI
Diffstat (limited to 'sonar-plugin-api')
-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 cb34dbd468c..82d2da7a478 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
@@ -2245,6 +2245,8 @@ public final class CoreMetrics {
*/
public static final Metric LAST_COMMIT_DATE = new Metric.Builder(LAST_COMMIT_DATE_KEY, "Date of last commit", Metric.ValueType.MILLISEC)
.setDomain(CoreMetrics.DOMAIN_SCM)
+ // waiting for type "datetime" to be correctly handled
+ .setHidden(true)
.create();
private static final List<Metric> METRICS;