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.

...

The plugin enables analysis of Groovy projects within SonarSonarQubeTM.

It is compatible with the Issues Report plugin to run pre-commit local analysis.

...

Plugin

0.1

0.2

0.3

0.4

0.50.6

CodeNarc

0.9

0.9

0.13

0.15

0.16.10.17

GMetrics

0.2

0.2

0.3

0.3

0.40.5

cobertura-maven-plugin

(error)

2.4

2.5

2.5

2.5.12.5.1

Installation

  1. Install the Groovy plugin through the Update Center or download it into the SONAR SONARQUBE_HOME/extensions/plugins directory
  2. Restart the Sonar SonarQubeTM server

Usage

Run a

...

SonarQubeTM Analysis with the Sonar Runner (Recommended Way)

To launch a Sonar run an analysis of your Groovy project, use the Sonar Runner.

A sample project is available on github that can be browsed or downloaded: /projects/languages/groovy/groovy-sonar-runner.

Run a

...

SonarQubeTM Analysis with the other Analyzers

Maven and Ant can also be used to launch analysis on Groovy projects.

A Maven sample project is available on github that can be browsed or downloaded/projects/languages/groovy/groovy-maven.

Advanced Usage

It is possible to reuse previously generated report from CodeNarc by setting the sonar.groovy.codenarc.reportPath property.

Metrics

See Metrics documentation page.

...

The source directory must be added to the pom.xml, even if the project is built with Maven. This comes from the fact that Sonar SonarQubeTM does not call gmaven plugin.

...

JIRA Issues
anonymoustrue
titleVersion 0.4
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17478&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleVersion 0.3
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16837&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleVersion 0.2
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16744&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

 

JIRA Issues
anonymoustrue
titleVersion 0.1
renderModestatic
width900
columnstype;key;summary;priority
urlhttp://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16626&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000