Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Name

Groovy/Grails CodeNarc - GMetrics Bridge

Authors

Scott Kessler, Olivier Gaudin

Jira

 

State

Under Development (alpha testing)

License

LGPL v3

Download Sources

http://svn.codehaus.org/sonar-plugins/trunk/groovy/

Download JAR

N/A

Version Information

Application

Version

CodeNarc

0.1

CodeNarc

0.9

GMetrics

0.1.1

Description / Features

This plugin enables the analysis of Groovy projects. To do so, it leverages Squid to calculate basic metrics, CodeNarc for coding rules violations and Gmetrics for cyclomatic complexity.

Installation

Place the JAR file of the plugin in /extensions/plugins of your Sonar installation. Restart sonar.

Usage

Maven projects

If you project if built with Maven, you should add in your pom

to the build section and :

Non-maven projects

If you project does not use Maven as a build engine, you should create a small pom.xml file at the root of you project and have the following content in it :

Running analysis

To kick-off the analysis, run mvn sonar:sonar

Known limitations

When running the search for duplications, the Groovy lexer will sometimes output some exceptions. It does not stop the Sonar plugin to work, but the will not run comprehensive copy/paste detection on those files. This issue should be fixed in Groovy 1.7. See SONAR-596
Source directory must be given
Inner classes

Changelog

Loading

Release 0.1 (4 issues)

  • No labels