Reads the properties file named "codenarc.properties", if found on the classpath, and applies
the property values to matching Rules within a specified RuleSet
. If the
properties file is not found on the classpath, then do nothing.
[rule-name].[property-name]=[property-value]
,
the named property for the rule within the RuleSet matching rule-name is set to the
specified property-value. Properties entries not of this form or specifying rule
names not within the specified RuleSet are ignored.
Modifiers | Name | Description |
---|---|---|
protected def |
defaultPropertiesFilename |
Configure the rules within the RuleSet from the properties file (relative to the classpath). The default properties filename is "codenarc.properties", but can be overridden by setting the "codenarc.properties.filename" system property.
Each properties entry of the form[rule-name].[property-name]=[property-value]
is used to set the named property of the named rule. Other (non-matching)
property entries are ignored.
ruleSet
- - the RuleSet to configure; must not be null