Skip to content

Commit

Permalink
Fix incompatibility with RuboCop extensions that modify Include/Exclu…
Browse files Browse the repository at this point in the history
…de for cops

Consider this example:
* A different extension (like rubocop-erb) gets loaded first and modifies a cops Exclude list
* rubocop-md gets loaded and also modifies the same cops exclude list
* rubocop-md discards the changes from rubocop-erb because the configs aren't being merged
  • Loading branch information
Earlopain committed Jan 11, 2024
1 parent 0ca0d0d commit 96f5e46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
inherit_mode:
merge:
- Include
- Exclude

Markdown:
WarnInvalid: true
Autodetect: true
Expand Down

0 comments on commit 96f5e46

Please sign in to comment.