Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Usage, Installation and Configuration

  1. Install from Update Center or download the JAR into the directory /extensions/plugins/
  2. If you plan to use this plugin with non-maven projects or no SCM information is included in project's pom.xml you have to install also the SCM Activity plugin 
  3. Restart Sonar.
  4. Set the SCM URL of your project (see SCM URL Format) by setting the sonar.scm.url property of SCM Activity plugin. For Maven projects this is automatically discovered if it's already set in pom.xml

  5. Launch a new quality analysis and the metrics will be fed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/scmstats.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe}

Description / Features

The plugin computes and feds Sonar with four (4) new metrics : Commits / User, Commits / Clock Hour, Commits / Week Day and Commits / Month.
Four project widgets ( under the SCM category ) display these metrics using graphical representations.

Info

The "commits per user widget" displays only the top commiters ( list and pie chart )

Image Removed 

Image Added

The other three widgets display in a bar chart the number of commits / clock hour, week day or month.

...

Tip

The plugin also adds a project dashboard under the name SCM Stats that contains all four widgets.

Usage, Installation and Configuration

  1. Install the JavaScript plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
  2. If you plan to use this plugin with non-maven projects or no SCM information is included in project's pom.xml you have to also install the SCM Activity plugin 
  3. Restart the Sonar server
  4. Set the SCM URL of your project (see SCM URL Format) by setting the sonar.scm.url property of SCM Activity plugin. For Maven projects this is automatically discovered if it's already set in pom.xml

  5. Launch a new quality analysis and the metrics will be fed

Compatibility Matrix

Plugin version

0.1
Source Control 

Subversion

(tick)

Git(tick)

Metrics Definitions

Name

Key

Qualitative

Description

Commits Per User

scm-commits-per-user

no

Reports on the number of commits per user.

Commits Per Clock Hour

scm-commits-per-clockhour

no

Reports on the number of commits per clock hour.

Commits Per Week Dayscm-commits-per-weekdaynoReports on the number of commits per week day.
Commits Per Monthscm-commits-per-monthnoReports on the number of commits per month.

 

Future Work

Plenty !!! Waiting for your ideas as well!

Change Log

JIRA Issues
anonymoustrue
titleRelease 0.1
height320
width800
columnstype;key;summary;priority;status;resolution
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18774&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000