From 680a585a5f934d9976b78952b9427e79f2ce71d1 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Thu, 4 Oct 2012 16:33:05 +0200 Subject: [PATCH] SONAR-3683 Remove SCM metrics "Commits", "Last Commit" and "Revision" --- .../resources/org/sonar/l10n/core.properties | 9 ---- .../org/sonar/api/measures/CoreMetrics.java | 44 ------------------- 2 files changed, 53 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 94175a42bc5..59a8b9c9740 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -1903,15 +1903,6 @@ metric.file_feedback_edges.description=Suspect file dependencies metric.file_edges_weight.name=File edges weight metric.file_edges_weight.description=File edges weight -metric.commits.name=Commits -metric.commits.description=Commits - -metric.last_commit_date.name=Last commit -metric.last_commit_date.description=Last commit - -metric.revision.name=Revision -metric.revision.description=Revision - metric.authors_by_line.name=Authors by line metric.authors_by_line.description=Authors by line 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 c609da95d8f..7e3adbf5073 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 @@ -1780,50 +1780,6 @@ public final class CoreMetrics { // // -------------------------------------------------------------------------------------------------------------------- - /** - * @since 2.7 - */ - public static final String SCM_COMMITS_KEY = "commits"; - - /** - * @since 2.7 - */ - public static final Metric SCM_COMMITS = new Metric.Builder(SCM_COMMITS_KEY, "Commits", Metric.ValueType.INT) - .setDomain(DOMAIN_SCM) - .create(); - - /** - * @since 2.7 - */ - public static final String SCM_LAST_COMMIT_DATE_KEY = "last_commit_date"; - - /** - * Date of last commit, which is represented as string in format {@link org.sonar.api.utils.DateUtils#DATE_FORMAT}. - * - * @since 2.7 - */ - public static final Metric SCM_LAST_COMMIT_DATE = new Metric.Builder(SCM_LAST_COMMIT_DATE_KEY, "Last commit", Metric.ValueType.STRING /* - * TODO: - * move - * to - * date - */) - .setDomain(DOMAIN_SCM) - .create(); - - /** - * @since 2.7 - */ - public static final String SCM_REVISION_KEY = "revision"; - - /** - * @since 2.7 - */ - public static final Metric SCM_REVISION = new Metric.Builder(SCM_REVISION_KEY, "Revision", Metric.ValueType.STRING) - .setDomain(DOMAIN_SCM) - .setHidden(true) - .create(); - /** * @since 2.7 */ -- 2.39.5