templates.StarterRuleSet-AllRules.groovy.template Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CodeNarc Show documentation
Show all versions of CodeNarc Show documentation
The CodeNarc project provides a static analysis tool for Groovy code.
ruleset {
description '''
A Sample Groovy RuleSet containing all CodeNarc Rules
You can use this as a template for your own custom RuleSet.
Just delete the rules that you don't want to include.
'''
<% rules.each { rule -> def extraInfo = ruleExtraInformation[rule.name] ? " // ${ruleExtraInformation[rule.name]}" : '' %>${rule.name} ${extraInfo}
<% } %>
}