CodeNarc is an open source software tool that analyzes Groovy source code. It uses static analysis to identify hundreds of types of potential errors, bad practices, inconsistencies and style issues. Static analysis serves as an aid in maintaining and enforcing a set of software quality standards across one or more developers and/or software projects.

CodeNarc includes configurable rules for finding:

  • Unused code
  • Unnecessary code
  • Code that violates configurable limits for size/complexity
  • Code that violates naming conventions
  • Code that violates Groovy-specific idiomatic conventions
  • Code that violates best practices for concurrency, security and serialization
  • Code that violates best practices for Grails and JUnit frameworks

Plugins - Integration With Other Software Tools

CodeNarc plugins exist for:

See also


  • Ikkink, Hubert Klein, Gradle Effective Implementation Guide, 2012, Packt Publishing [1]
  • Guillaume LaForge, What's New in Groovy 1.6, 2009, InfoQ article



  • Hamlet D'Arcy has produced a screencast entitled "Groovy CodeNarc: How to Write a Rule".

External links

Category:Static code analysis

This article uses material from the Wikipedia article Wikipedia talk:Articles for creation/Cmair/CodeNarc, that was deleted or is being discussed for deletion, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Author(s): DangerousPanda Search for "Wikipedia talk:Articles for creation/Cmair/CodeNarc" on Google
View Wikipedia's deletion log of "Wikipedia talk:Articles for creation/Cmair/CodeNarc"

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.