rubocop: Drop "r" from Naming/MethodParameterName allowlist
- This stands for "resource" in our case, so use the long name.
This commit is contained in:
parent
89fb8c78e8
commit
0cd616bc66
@ -201,7 +201,6 @@ Naming/MethodParameterName:
|
|||||||
"o",
|
"o",
|
||||||
"p",
|
"p",
|
||||||
"pr",
|
"pr",
|
||||||
"r",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Both styles are used depending on context,
|
# Both styles are used depending on context,
|
||||||
|
|||||||
@ -130,12 +130,12 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.fetch_resource(r, args:)
|
def self.fetch_resource(resource, args:)
|
||||||
puts "Resource: #{r.name}"
|
puts "Resource: #{resource.name}"
|
||||||
fetch_fetchable r, args: args
|
fetch_fetchable resource, args: args
|
||||||
rescue ChecksumMismatchError => e
|
rescue ChecksumMismatchError => e
|
||||||
retry if retry_fetch?(r, args: args)
|
retry if retry_fetch?(resource, args: args)
|
||||||
opoo "Resource #{r.name} reports different sha256: #{e.expected}"
|
opoo "Resource #{resource.name} reports different sha256: #{e.expected}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.fetch_formula(f, args:)
|
def self.fetch_formula(f, args:)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user