From 96f5e46f16a99423e43270bf3249788ea6e6f112 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:05:53 +0100 Subject: [PATCH] Fix incompatibility with RuboCop extensions that modify Include/Exclude 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 --- config/default.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/default.yml b/config/default.yml index 40dcaa1..feff9cc 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1,3 +1,8 @@ +inherit_mode: + merge: + - Include + - Exclude + Markdown: WarnInvalid: true Autodetect: true