lib/rubocop/cop/naming/constant_name.rb in rubocop-0.72.0 vs lib/rubocop/cop/naming/constant_name.rb in rubocop-0.73.0

- old
+ new

@@ -21,11 +21,11 @@ MSG = 'Use SCREAMING_SNAKE_CASE for constants.' # Use POSIX character classes, so we allow accented characters rather # than just standard ASCII characters SNAKE_CASE = /^[[:digit:][:upper:]_]+$/.freeze - def_node_matcher :class_or_struct_return_method?, <<-PATTERN + def_node_matcher :class_or_struct_return_method?, <<~PATTERN (send (const _ {:Class :Struct}) :new ...) PATTERN @@ -61,10 +61,10 @@ def allowed_method_call_on_rhs?(node) node&.send_type? && (node.receiver.nil? || !literal_receiver?(node)) end - def_node_matcher :literal_receiver?, <<-PATTERN + def_node_matcher :literal_receiver?, <<~PATTERN {(send literal? ...) (send (begin literal?) ...)} PATTERN def allowed_conditional_expression_on_rhs?(node)