From 93c0574d71e788cf3cd326733c86c993e0caf115 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Sat, 12 Jul 2025 05:02:22 +0800 Subject: [PATCH] resolve_conflicts!: ignore Naming/PredicateMethod error Ending the name with a `!` is more appropriate here. --- Library/Homebrew/bundle/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/bundle/formula_installer.rb b/Library/Homebrew/bundle/formula_installer.rb index dee82b30f7..8855d677e9 100644 --- a/Library/Homebrew/bundle/formula_installer.rb +++ b/Library/Homebrew/bundle/formula_installer.rb @@ -260,6 +260,9 @@ module Homebrew 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:) conflicts_with.each do |conflict| next unless FormulaInstaller.formula_installed?(conflict) @@ -281,6 +284,7 @@ module Homebrew true end + # rubocop:enable Naming/PredicateMethod def install!(verbose:, force:) install_args = @args.dup