npm-groovy-lint 16.0.0 → 16.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/codenarc-factory.js +2 -2
- package/package.json +1 -1
package/lib/codenarc-factory.js
CHANGED
|
@@ -449,8 +449,8 @@ async function buildRuleSets(options) {
|
|
|
449
449
|
? ruleOptions
|
|
450
450
|
: ruleFromConfig;
|
|
451
451
|
const ruleDef = buildCodeNarcRule(ruleName, mergedRuleConfig);
|
|
452
|
-
// If rule has been sent as argument, enable it
|
|
453
|
-
if (ruleDef.enabled === false) {
|
|
452
|
+
// If rule has been sent as argument, enable it if not explicitly disabled
|
|
453
|
+
if (ruleOptions.enabled !== false && ruleDef.enabled === false) {
|
|
454
454
|
ruleDef.enabled = true;
|
|
455
455
|
}
|
|
456
456
|
return ruleDef;
|