]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3683 Remove SCM metrics "Commits", "Last Commit" and "Revision"
authorDavid Gageot <david@gageot.net>
Thu, 4 Oct 2012 14:33:05 +0000 (16:33 +0200)
committerDavid Gageot <david@gageot.net>
Thu, 4 Oct 2012 14:33:25 +0000 (16:33 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-plugin-api/src/main/java/org/sonar/api/measures/CoreMetrics.java

index 94175a42bc5059334b572d3b5d91c10a7f21f4ad..59a8b9c974083ea1957d5ed26d1e0d9a531c5cf5 100644 (file)
@@ -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
 
index c609da95d8f5bdae003dbd8ac6fe3e020be0f916..7e3adbf5073e360e653ff453f932366050bb79d9 100644 (file)
@@ -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
    */