rubocop: Drop "r" from Naming/MethodParameterName allowlist

- This stands for "resource" in our case, so use the long name.
This commit is contained in:
Issy Long 2023-03-08 00:14:10 +00:00
parent 89fb8c78e8
commit 0cd616bc66
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 5 additions and 6 deletions

View File

@ -201,7 +201,6 @@ Naming/MethodParameterName:
"o",
"p",
"pr",
"r",
]
# Both styles are used depending on context,

View File

@ -130,12 +130,12 @@ module Homebrew
end
end
def self.fetch_resource(r, args:)
puts "Resource: #{r.name}"
fetch_fetchable r, args: args
def self.fetch_resource(resource, args:)
puts "Resource: #{resource.name}"
fetch_fetchable resource, args: args
rescue ChecksumMismatchError => e
retry if retry_fetch?(r, args: args)
opoo "Resource #{r.name} reports different sha256: #{e.expected}"
retry if retry_fetch?(resource, args: args)
opoo "Resource #{resource.name} reports different sha256: #{e.expected}"
end
def self.fetch_formula(f, args:)