Hosts extra codenarc rules which are not bundled with codenarc.
Add dependency to codenarc extra in build.gradle
repositories {
jcenter()
}
dependencies {
codenarc "io.9ci.yakworks:codenarc-extra:1.0.1.RC2"
}
Add codenarc ruleset in rules.groovy file as shown below.
ruleset {
ruleset('rulesets/codenarc-extra.xml')
}
That should make the codenarc-extra rules apply.
- CompileStaticRule This rule ensures that all groovy classes are annotated with one of the @CompileStatic, @CompileDynamic or @GrailsCompileStatic