There are a couple of places where to look for such information:
- The Gradle User Guide, which has a chapter for each plugin.
- The Gradle Build Language Reference (specifically the
CodeNarc
task type). - The samples in the full Gradle distribution.
- The Gradle forums.
According to 2., an include
or exclude
filter should do the trick. For example:
codenarcMain {
exclude "myapp/legacy/**"
}