You do not need it.
The Codenarc plugin allows you to save the configuration of the knuckles externally. Take a look here http://grails.org/plugin/codenarc#Configuring Codenarc Properties
Here is an example of setting up the code that I have in BuildConfig.groovy
codenarc.processTestUnit = false codenarc.processTestIntegration = false codenarc.processViews = true codenarc.propertiesFile = 'grails-app/conf/codenarc.properties' codenarc.ruleSetFiles = [ "rulesets/basic.xml", "rulesets/braces.xml", "rulesets/grails.xml", "rulesets/groovyism.xml", ]
Here we also define the external codenarc.properties file, which we use to enable / disable parts of the rules from each included rule set. An example of this codenarc.properties content is here:
# some gsp MUST have embedded CSS and/or embedded Javascript which requires the use of semicolons. UnnecessarySemicolon.doNotApplyToFileNames = *.gsp
So, you can avoid polluting your BuildConfig with the unnecessary things that Thomas mentioned.
Hope this helps.
Tom
source share