Skip to content

Commit 9b450a8

Browse files
committed
Workaround for a false positive of InternalAffairs/UndefinedConfig
Workaround for a false positive caused by `InternalAffairs/UndefinedConfig` cop when using `bundle exec rake`. ```console % bundle exec rake (snip) Offenses: lib/rubocop/cop/rails/blank.rb:97:36: C: InternalAffairs/UndefinedConfig: NotPresent is not defined in the configuration for Rails/Blank in config/default.yml. return unless cop_config['NotPresent'] ^^^^^^^^^^^^ (snip) ```
1 parent e796e2d commit 9b450a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ AllCops:
1919
InternalAffairs/NodeMatcherDirective:
2020
Enabled: false
2121

22+
# FIXME: Workaround for a false positive caused by this cop when using `bundle exec rake`.
23+
InternalAffairs/UndefinedConfig:
24+
Enabled: false
25+
2226
Naming/InclusiveLanguage:
2327
FlaggedTerms:
2428
offence:

0 commit comments

Comments
 (0)