Merge pull request #6789 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-0.77.0
build: bump rubocop from 0.76.0 to 0.77.0 in /Library/Homebrew
This commit is contained in:
commit
f989295900
@ -13,12 +13,12 @@ NewFormulaAudit:
|
||||
Enabled: false
|
||||
|
||||
# make our hashes consistent
|
||||
Layout/AlignHash:
|
||||
Layout/HashAlignment:
|
||||
EnforcedHashRocketStyle: table
|
||||
EnforcedColonStyle: table
|
||||
|
||||
# `system` is a special case and aligns on second argument
|
||||
Layout/AlignArguments:
|
||||
Layout/ArgumentAlignment:
|
||||
Enabled: false
|
||||
|
||||
# favour parens-less DSL-style arguments
|
||||
|
@ -22,7 +22,7 @@ Cask/StanzaOrder:
|
||||
Description: 'Ensure that cask stanzas are sorted correctly. More info at https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#stanza-order'
|
||||
Enabled: true
|
||||
|
||||
Layout/AlignHash:
|
||||
Layout/HashAlignment:
|
||||
EnforcedHashRocketStyle: table
|
||||
EnforcedColonStyle: table
|
||||
|
||||
|
@ -7,7 +7,7 @@ AllCops:
|
||||
DisplayCopNames: false
|
||||
|
||||
# Use `<<~` for heredocs.
|
||||
Layout/IndentHeredoc:
|
||||
Layout/HeredocIndentation:
|
||||
EnforcedStyle: squiggly
|
||||
|
||||
# Not useful in casks and formulae.
|
||||
@ -21,7 +21,7 @@ Metrics/ParameterLists:
|
||||
|
||||
# Implicitly allow EOS as we use it everywhere.
|
||||
Naming/HeredocDelimiterNaming:
|
||||
Blacklist:
|
||||
ForbiddenDelimiters:
|
||||
- END, EOD, EOF
|
||||
|
||||
# Allow dashes in filenames.
|
||||
|
@ -10,7 +10,7 @@ AllCops:
|
||||
- '**/vendor/**/*'
|
||||
|
||||
# messes up system formatting for formulae but good for Homebrew/brew
|
||||
Layout/AlignArguments:
|
||||
Layout/ArgumentAlignment:
|
||||
Enabled: true
|
||||
|
||||
# make rspec formatting more flexible
|
||||
@ -72,11 +72,11 @@ Naming/PredicateName:
|
||||
Exclude:
|
||||
- 'compat/**/*'
|
||||
# can't rename these
|
||||
NameWhitelist: is_32_bit?, is_64_bit?
|
||||
AllowedMethods: is_32_bit?, is_64_bit?
|
||||
|
||||
# whitelist those that are standard
|
||||
# TODO: try to remove some of these
|
||||
Naming/UncommunicativeMethodParamName:
|
||||
Naming/MethodParameterName:
|
||||
AllowedNames:
|
||||
- '_'
|
||||
- 'a'
|
||||
|
@ -80,7 +80,7 @@ GEM
|
||||
rspec-support (3.9.0)
|
||||
rspec-wait (0.0.9)
|
||||
rspec (>= 3, < 4)
|
||||
rubocop (0.76.0)
|
||||
rubocop (0.77.0)
|
||||
jaro_winkler (~> 1.5.1)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 2.6)
|
||||
|
@ -59,7 +59,7 @@ module Homebrew
|
||||
quiet: args.quieter?
|
||||
rescue TapRemoteMismatchError => e
|
||||
odie e
|
||||
rescue TapAlreadyTappedError, TapAlreadyUnshallowError # rubocop:disable Lint/HandleExceptions
|
||||
rescue TapAlreadyTappedError, TapAlreadyUnshallowError # rubocop:disable Lint/SuppressedException
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -80,7 +80,7 @@ module Homebrew
|
||||
if Utils.popen_read("git config --get --bool commit.gpgsign").chomp == "true"
|
||||
begin
|
||||
gnupg = Formula["gnupg"]
|
||||
rescue FormulaUnavailableError # rubocop:disable Lint/HandleExceptions
|
||||
rescue FormulaUnavailableError # rubocop:disable Lint/SuppressedException
|
||||
else
|
||||
if gnupg.installed?
|
||||
path = PATH.new(ENV.fetch("PATH"))
|
||||
|
@ -5,7 +5,7 @@ class Caveats
|
||||
|
||||
def plist_caveats
|
||||
s = []
|
||||
if f.plist || (keg&.plist_installed?)
|
||||
if f.plist || keg&.plist_installed?
|
||||
plist_domain = f.plist_path.basename(".plist")
|
||||
|
||||
# we readlink because this path probably doesn't exist since caveats
|
||||
|
@ -325,7 +325,7 @@ class Formula
|
||||
active_spec == head
|
||||
end
|
||||
|
||||
delegate [ # rubocop:disable Layout/AlignHash
|
||||
delegate [ # rubocop:disable Layout/HashAlignment
|
||||
:bottle_unneeded?,
|
||||
:bottle_disabled?,
|
||||
:bottle_disable_reason,
|
||||
@ -1078,7 +1078,7 @@ class Formula
|
||||
# keg's formula is deleted.
|
||||
begin
|
||||
keg = Keg.for(path)
|
||||
rescue NotAKegError, Errno::ENOENT # rubocop:disable Lint/HandleExceptions
|
||||
rescue NotAKegError, Errno::ENOENT # rubocop:disable Lint/SuppressedException
|
||||
# file doesn't belong to any keg.
|
||||
else
|
||||
tab_tap = Tab.for_keg(keg).tap
|
||||
@ -1087,7 +1087,7 @@ class Formula
|
||||
|
||||
begin
|
||||
Formulary.factory(keg.name)
|
||||
rescue FormulaUnavailableError # rubocop:disable Lint/HandleExceptions
|
||||
rescue FormulaUnavailableError # rubocop:disable Lint/SuppressedException
|
||||
# formula for this keg is deleted, so defer to whitelist
|
||||
rescue TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
|
||||
return false # this keg belongs to another formula
|
||||
|
@ -339,8 +339,8 @@ class Tab < OpenStruct
|
||||
"time" => time,
|
||||
"source_modified_time" => source_modified_time.to_i,
|
||||
"HEAD" => self.HEAD,
|
||||
"stdlib" => (stdlib&.to_s),
|
||||
"compiler" => (compiler&.to_s),
|
||||
"stdlib" => stdlib&.to_s,
|
||||
"compiler" => compiler&.to_s,
|
||||
"aliases" => aliases,
|
||||
"runtime_dependencies" => runtime_dependencies,
|
||||
"source" => source,
|
||||
|
@ -61,7 +61,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-retry-0.6.2/lib
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.10.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-1.6.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.76.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-0.77.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.5.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-1.37.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.2.0/lib"
|
||||
|
Loading…
x
Reference in New Issue
Block a user