diff --git a/Library/Homebrew/rubocops/livecheck.rb b/Library/Homebrew/rubocops/livecheck.rb index f7e3bc55c4260b323a250992d6f0864c3a34d027..b857858e47df72613ea6a288eeb8aa3306866f7e 100644 --- a/Library/Homebrew/rubocops/livecheck.rb +++ b/Library/Homebrew/rubocops/livecheck.rb @@ -218,10 +218,8 @@ module RuboCop # # @api private class LivecheckRegexCaseInsensitive < FormulaCop - REGEX_CASE_SENSITIVE_ALLOWLIST = %w[].freeze - def audit_formula(_node, _class_node, _parent_class_node, body_node) - return if REGEX_CASE_SENSITIVE_ALLOWLIST.include?(@formula_name) + return if tap_style_exception? :regex_case_sensitive_allowlist livecheck_node = find_block(body_node, :livecheck) return if livecheck_node.blank?