org.codenarc.ruleset
[Groovy] Class RuleSetBuilder
java.lang.Object
org.codenarc.ruleset.RuleSetBuilder
class RuleSetBuilder
A Builder for RuleSets. Create a RuleSet by calling the ruleset
method, passing in a Closure
defining the contents of the RuleSet.
The Closure
can contain any combination of the following (as well as
arbitrary Groovy code):
ruleset
- to load a RuleSet file. The path specifies either a
Groovy file or an XML file.
rule
- to load a single Rule (specify either the rule name or rule class)
description
- description of the RuleSet (optional)
- Authors:
- Chris Mair
- Version:
- \$Revision: 619 \$ - \$Date: 2011-02-27 15:38:33 -0500 (Sun, 27 Feb 2011) \$
getRuleSet
RuleSet getRuleSet()
-
ruleset
void ruleset(groovy.lang.Closure closure)
-
Groovy Documentation