resolve_conflicts!: ignore Naming/PredicateMethod error

Ending the name with a `!` is more appropriate here.
This commit is contained in:
Carlo Cabrera 2025-07-12 05:02:22 +08:00 committed by Carlo Cabrera
parent a09803fab8
commit 93c0574d71
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -260,6 +260,9 @@ module Homebrew
end end
end end
# Ending with a `!` is more appropriate here given that this affects the state of the user's system.
# rubocop:disable Naming/PredicateMethod
def resolve_conflicts!(verbose:) def resolve_conflicts!(verbose:)
conflicts_with.each do |conflict| conflicts_with.each do |conflict|
next unless FormulaInstaller.formula_installed?(conflict) next unless FormulaInstaller.formula_installed?(conflict)
@ -281,6 +284,7 @@ module Homebrew
true true
end end
# rubocop:enable Naming/PredicateMethod
def install!(verbose:, force:) def install!(verbose:, force:)
install_args = @args.dup install_args = @args.dup