rubocop: Drop "p" from Naming/MethodParameterName allowlist

- It's used to refer to a patch, so use the long name.
This commit is contained in:
Issy Long 2023-03-08 00:15:17 +00:00
parent 0cd616bc66
commit e273c25be0
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 2 additions and 3 deletions

View File

@ -199,7 +199,6 @@ Naming/MethodParameterName:
"f",
"ff",
"o",
"p",
"pr",
]

View File

@ -152,8 +152,8 @@ module Homebrew
opoo "Cask reports different sha256: #{e.expected}"
end
def self.fetch_patch(p, args:)
fetch_fetchable p, args: args
def self.fetch_patch(patch, args:)
fetch_fetchable patch, args: args
rescue ChecksumMismatchError => e
opoo "Patch reports different sha256: #{e.expected}"
Homebrew.failed = true