From cc25e0aa6268246f28852d16d8ff127d939aff61 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Sat, 12 Jul 2025 05:04:31 +0800 Subject: [PATCH] upgrade!: ignore Naming/PredicateMethod error --- Library/Homebrew/bundle/formula_installer.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/bundle/formula_installer.rb b/Library/Homebrew/bundle/formula_installer.rb index 3fe7c9e294..35f918323b 100644 --- a/Library/Homebrew/bundle/formula_installer.rb +++ b/Library/Homebrew/bundle/formula_installer.rb @@ -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