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:
commit
b05bd61ddd
@ -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
|
||||
|
||||
@ -11,6 +11,9 @@ Homebrew/MoveToExtendOS:
|
||||
- "os.rb"
|
||||
|
||||
Naming/PredicateName:
|
||||
inherit_mode:
|
||||
merge:
|
||||
- AllowedMethods
|
||||
AllowedMethods:
|
||||
- is_32_bit?
|
||||
- is_64_bit?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user