write_names: ignore Naming/PredicateMethod error

This is not a predicate method.
This commit is contained in:
Carlo Cabrera 2025-07-12 04:57:38 +08:00 committed by Carlo Cabrera
parent d5b335a977
commit a09803fab8
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -92,11 +92,14 @@ module Homebrew
end end
sig { params(regenerate: T::Boolean).void } sig { params(regenerate: T::Boolean).void }
# This is not a predicate method (return type is `void`).
# rubocop:disable Naming/PredicateMethod
def self.write_names(regenerate: false) def self.write_names(regenerate: false)
download_and_cache_data! unless cache.key?("casks") download_and_cache_data! unless cache.key?("casks")
Homebrew::API.write_names_file?(all_casks.keys, "cask", regenerate:) Homebrew::API.write_names_file?(all_casks.keys, "cask", regenerate:)
end end
# rubocop:enable Naming/PredicateMethod
end end
end end
end end