groovy.org.codenarc.ruleregistry
[Groovy] Class PropertiesFileRuleRegistry
java.lang.Object
groovy.org.codenarc.ruleregistry.PropertiesFileRuleRegistry
- All Implemented Interfaces:
- RuleRegistry
class PropertiesFileRuleRegistry
Implementation of RuleRegistry that loads the rules from the 'codenarc-base-rules.properties' properties file.
- Authors:
- Chris Mair
- See Also:
- org.codenarc.tool.GenerateCodeNarcRulesProperties
PROPERTIES_FILE
public static final def PROPERTIES_FILE
-
PropertiesFileRuleRegistry
PropertiesFileRuleRegistry()
-
getRuleClass
Class getRuleClass(String ruleName)
- Return the Rule Class for the specified name or else null
- Parameters:
ruleName
- - the rule name
- Returns:
- the associated Rule Class or null if no Rule has been registered for the specified name
Groovy Documentation