class RuboCop::Cop::Style::RedundantFreeze
def immutable_literal?(node)
def immutable_literal?(node) node = strip_parenthesis(node) return true if node.immutable_literal? return true if frozen_string_literal?(node) target_ruby_version >= 3.0 && (node.regexp_type? || node.range_type?) end