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