lib/rubocop/cop/style/line_end_concatenation.rb in rubocop-0.52.1 vs lib/rubocop/cop/style/line_end_concatenation.rb in rubocop-0.53.0
- old
+ new
@@ -18,9 +18,11 @@
# # good
# some_str = 'ala' \
# 'bala'
#
class LineEndConcatenation < Cop
+ include RangeHelp
+
MSG = 'Use `\\` instead of `+` or `<<` to concatenate ' \
'those strings.'.freeze
CONCAT_TOKEN_TYPES = %i[tPLUS tLSHFT].freeze
SIMPLE_STRING_TOKEN_TYPE = :tSTRING
COMPLEX_STRING_EDGE_TOKEN_TYPES = %i[tSTRING_BEG tSTRING_END].freeze