rubocop: Move AllowedMethods inheritance to the cop it's used in

- `Include` and `Exclude` are ubiquitous but `AllowedMethods` less so.
- Move the inheritance to the single cop configuration that it's used
  in. Like we do with some other cop configs where they have default
  paths/settings that we want to add to, not replace.
This commit is contained in:
Issy Long 2023-03-03 22:25:29 +00:00
parent 066a8afe61
commit 0a18898425
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,6 @@ inherit_mode:
merge:
- Include
- Exclude
- AllowedMethods
AllCops:
TargetRubyVersion: 2.6

View File

@ -16,6 +16,9 @@ Layout/MultilineMethodCallIndentation:
- "**/*_spec.rb"
Naming/PredicateName:
inherit_mode:
merge:
- AllowedMethods
AllowedMethods:
- is_32_bit?
- is_64_bit?