install!: ignore Naming/PredicateMethod error

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

View File

@ -286,6 +286,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 install!(verbose:, force:)
install_args = @args.dup
install_args << "--force" << "--overwrite" if force
@ -301,6 +303,7 @@ module Homebrew
@changed = true
true
end
# rubocop:enable Naming/PredicateMethod
def upgrade!(verbose:, force:)
upgrade_args = []