8000 [Fix #13328] Declare `Enabled` as a common config key · rubocop/rubocop@60ecb00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60ecb00

Browse files
Earlopainbbatsov
authored andcommitted
[Fix #13328] Declare Enabled as a common config key
Enabled defaults to true and can always be set. So, even though a warning would be shown, the config value still takes.
1 parent 99022d9 commit 60ecb00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rubocop/config_validator.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class ConfigValidator
77
extend SimpleForwardable
88

99
# @api private
10-
COMMON_PARAMS = %w[Exclude Include Severity inherit_mode AutoCorrect StyleGuide Details].freeze
10+
COMMON_PARAMS = %w[Exclude Include Severity inherit_mode AutoCorrect StyleGuide Details
11+
Enabled].freeze
1112
# @api private
1213
INTERNAL_PARAMS = %w[Description StyleGuide
1314
VersionAdded VersionChanged VersionRemoved

0 commit comments

Comments
 (0)
0