Merge pull request #14878 from issyl0/a-little-more-rubocop-tidying

rubocop: Trim exclude paths without offenses; move some more config
This commit is contained in:
Mike McQuaid 2023-03-06 12:36:10 +00:00 committed by GitHub
commit b05bd61ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 16 deletions

View File

@ -10,7 +10,6 @@ inherit_mode:
merge:
- Include
- Exclude
- AllowedMethods
AllCops:
TargetRubyVersion: 2.6
@ -342,12 +341,6 @@ Style/BlockDelimiters:
- "sig"
Exclude:
- "Homebrew/**/*_spec.rb"
- "Homebrew/**/shared_examples/**/*.rb"
# TODO: remove this when possible.
Style/ClassVars:
Exclude:
- "**/developer/bin/*"
# Use consistent style for better readability.
Style/CollectionMethods:
@ -388,11 +381,6 @@ Style/FrozenStringLiteralComment:
- "**/*.rbi"
- "**/Brewfile"
# TODO: remove this when possible.
Style/GlobalVars:
Exclude:
- "**/developer/bin/*"
# potential for errors in formulae too high with this
Style/GuardClause:
Exclude:
@ -407,6 +395,10 @@ Style/HashAsLastArrayItem:
- "/**/Formula/**/*.rb"
- "**/Formula/**/*.rb"
# would rather freeze too much than too little
Style/MutableConstant:
EnforcedStyle: strict
# Zero-prefixed octal literals are widely used and understood.
Style/NumericLiteralPrefix:
EnforcedOctalStyle: zero_only
@ -483,7 +475,3 @@ Style/UnlessLogicalOperators:
# a bit confusing to non-Rubyists but useful for longer arrays
Style/WordArray:
MinSize: 4
# would rather freeze too much than too little
Style/MutableConstant:
EnforcedStyle: strict

View File

@ -11,6 +11,9 @@ Homebrew/MoveToExtendOS:
- "os.rb"
Naming/PredicateName:
inherit_mode:
merge:
- AllowedMethods
AllowedMethods:
- is_32_bit?
- is_64_bit?