http://codenarc.sourceforge.net
CodeNarc is a static analysis tool for Groovy source code.
Version 0.5 adds
- A new "grails" ruleset and nine new rules:
* GrailsStatelessServiceRule (grails)
* GrailsPublicControllerMethodRule (grails)
* GrailsServletContextReferenceRule (grails)
* GrailsSessionReferenceRule (grails)
* StatelessClassRule (generic)
* EmptySynchronizedStatementRule (basic).
* EmptySwitchStatementRule (basic).
* EqualsAndHashCodeRule (basic)
* JUnitPublicNonTestMethodRule (junit).
- Run CodeNarc as a command-line application (org.codenarc.CodeNarc).
- Create new rules using Groovy scripts.
- Filter rules based on class and/or package (applyToClassNames and doNotApplyToClassNames)
- Normalize all separators (/,\) in SourceCode paths to '/'.
- Enable setting violationMessage of a rule to an empty string to turn it off.
- Deprecate applyToFilenames and doNotApplyToFilenames; rename to applyToFileNames and doNotApplyToFileNames.