NOTE: The Groovy, Griffon and GPars projects all include CodeNarc as part of their regular build process.
Sample reports for the Grails and Gradle projects are shown below.
Disclaimer: The following reports are generated using a "one-size-fits-all" Generic RuleSet, that does not reflect the standards and best practices specific to the individual projects. In general, a RuleSet should be customized to reflect the specific standards and practices of a project or development organization, and to filter out "legitimate" violations.
CodeNarc report for Grails 1.3.7
CodeNarc report for Gradle 1.0-milestone-1
ruleset { description 'A Generic Groovy RuleSet' ruleset("rulesets/basic.xml") ruleset("rulesets/concurrency.xml") ruleset("rulesets/imports.xml") ruleset("rulesets/junit.xml") { exclude 'JUnitStyleAssertions' } ruleset("rulesets/size.xml") ruleset("rulesets/unused.xml") ruleset("rulesets/unnecessary.xml") { exclude 'UnnecessaryGString' exclude 'UnnecessaryPublicModifier' exclude 'UnnecessaryReturnKeyword' exclude 'UnnecessarySemicolon' } }