I'm using the CodeNarc plug for Gradle with CodeNarc 1.1. I am using the DuplicateStringLiteral rule and passing in ignoreStrings: ['1', '2'] in the config file but the rule is not respecting the values I'm passing in. It's a groovy config file, section looks like:
DuplicateStringLiteral (
ignoreStrings: ['1', '2']
)
I am also using DuplicateNumberLiteral and defined the ignoreNumbers property the same way and that seems to be working fine, so I don't think I have the syntax wrong. The report seems to pick up the ignored values as well as it shows this line in the definition for the rule:
The ignoreStrings property ([1, 2]) can optionally specify a comma-separated list of Strings to ignore.
Anyone see what I'm doing wrong here?