Migrate REGEX_CASE_SENSITIVE_ALLOWLIST

This commit is contained in:
Rylan Polster 2020-11-27 12:49:49 -05:00
parent d59ce75d2a
commit a09613543a

View File

@ -218,10 +218,8 @@ module RuboCop
# #
# @api private # @api private
class LivecheckRegexCaseInsensitive < FormulaCop class LivecheckRegexCaseInsensitive < FormulaCop
REGEX_CASE_SENSITIVE_ALLOWLIST = %w[].freeze
def audit_formula(_node, _class_node, _parent_class_node, body_node) 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) livecheck_node = find_block(body_node, :livecheck)
return if livecheck_node.blank? return if livecheck_node.blank?