Questions tagged [codenarc]

CodeNarc is a static analysis tool for Groovy source code, enabling monitoring and enforcement of many coding standards and best practices.

CodeNarc is a static analysis tool for Groovy source code, enabling monitoring and enforcement of many coding standards and best practices. CodeNarc applies a set of Rules (predefined and/or custom) that are applied to each Groovy file, and generates an HTML or XML report of the results, including a list of rules violated for each source file, and a count of the number of violations per package and for the whole project.

CodeNarc is similar to popular static analysis tools such as PMD or Checkstyle. Unlike those tools which analyze Java code, CodeNarc analyzes Groovy code.

Useful Links

63 questions
0
votes
2 answers

How to exclude a package from codenarc?

I am new to Gradle and Codenarc but I found no example showing how to exclude a package from codenarc reports. For example, I have a groovy application that uses, for instance, the package myapp.main and myapp.legacy I want all my ruleset applied to…
Fernando
  • 2,131
  • 3
  • 27
  • 46
0
votes
1 answer

putting the appname in a codenarc report title

just started with the codenarc plugin for grails - seems to be great! But now I try to configure a dynamic report title like this: "code quality report for ${appName}" Unfortunately, it seems that the appName property is not available at the right…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
0
votes
1 answer

CodeNarc's static code analysis is not able to find proper class dependencies

When using CodeNarc for static code analysis on Groovy & Grails code, it is not able to figure out class hierarchies. There is a private method in one service class say BaseService. Another service class say ChildService extends the BaseService…
user235273
1 2 3 4
5