From 34b0cef167ceec094d2f14b039ad9402fc7cc7ad Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Sat, 12 Jul 2025 05:04:10 +0800 Subject: [PATCH] install!: 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 8855d677e9..3fe7c9e294 100644 --- a/Library/Homebrew/bundle/formula_installer.rb +++ b/Library/Homebrew/bundle/formula_installer.rb @@ -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 = []