upgrade!: ignore Naming/PredicateMethod error

This commit is contained in:
Carlo Cabrera 2025-07-12 05:04:31 +08:00 committed by Carlo Cabrera
parent 34b0cef167
commit cc25e0aa62
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -305,6 +305,8 @@ module Homebrew
end
# rubocop:enable Naming/PredicateMethod
# Ending with a `!` is more appropriate here given that this affects the state of the user's system.
# rubocop:disable Naming/PredicateMethod
def upgrade!(verbose:, force:)
upgrade_args = []
upgrade_args << "--force" if force
@ -318,6 +320,7 @@ module Homebrew
@changed = true
true
end
# rubocop:enable Naming/PredicateMethod
end
end
end