Versions Compared

Key

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

...

This plugin collects SCM information on each source file to display in the source code viewer the last committer on lines.

...

Installation

  1. Install from the SCM Activity plugin through the Update Center or  or download the JAR it into the directory SONAR_HOME/extensions/plugins /directory
  2. Restart the Sonar .server

Usage

Configuring the SCM Activity Plugin

  1. Set the SCM URL of your project (see SCM URL Format): sonar.scm.url properties. For Git, SVN and Mercurial, the SCM provider is automatically discovered, so what's defined in this property is not taken into account.

  2. At project level, go to Configuration > Settings > SCM Activity and specify User (sonar.scm.user.secured) and Password (sonar.scm.password.secured) if needed; if specified then developerConnection will be used, otherwise connection.
  3. Launch a new quality analysis and the metrics will be fed.

 

Info
titlePerformance

The first analysis of a project with version 1.4 will last longer than the subsequent analyses.

Forcing the Retrieval of Blame Information

In some cases, it is necessary to retrieve blame information on files that have not been changed (for example when a user has been renamed). To force this retrieval, here are the steps to follow:

  1. Deactivate the SCM Activity plugin: sonar.scm.enabled = false
  2. Run a Sonar analysis on your project
  3. Reactivate the SCM Activity plugin: sonar.scm.enabled = true
  4. Run a Sonar analysis on your project

 

Info

Note that a property should be added in one of the upcoming versions to explicitly force this retrieval or not. See SONARPLUGINS-2359.

 

Known Issues and Limitations

...

See http://git-scm.com/docs/git-blame#_mapping_authors

...

Change Log

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

...

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

...

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

...


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

...

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

...

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

...

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

...

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