rubocop-lts/ruby.yml in rubocop-ruby3_1-2.0.4 vs rubocop-lts/ruby.yml in rubocop-ruby3_1-2.0.5
- old
+ new
@@ -3,10 +3,11 @@
# We want Exclude directives from different
# config files to get merged, not overwritten
inherit_mode:
merge:
- Exclude
+ - Include
require:
# Loads the Standard Ruby suite of gems, and configures for rubocop-lts:
- standard-rubocop-lts
# The goal here is convention over configuration...
@@ -19,13 +20,17 @@
# a rubocop:disable is the least of our concerns. :D
- rubocop-thread_safety
# RuboCop Gradual can be used in "Require mode", which is a way to replace rubocop with rubocop-gradual:
- rubocop/gradual/patch
+# Rules are overridden in a LIFO stack.
+# If rubocop-shopify is loaded first, and standard-rubocop-lts after it,
+# then rubocop-shopify's rules will take precedence.
+# This is the opposite of what you might expect.
+# Below: rubocop-shopify rules will override standard-rubocop-lts's (i.e. standard's) rules.
inherit_gem:
- standard-rubocop-lts: config/ruby-3.1.yml
- # shopify rules will override standard's rules.
rubocop-shopify: rubocop.yml
+ standard-rubocop-lts: config/ruby-3.1.yml
inherit_from:
- strict/ruby.yml
AllCops: