lib/rubocop/cop/style/line_end_concatenation.rb in rubocop-0.48.0 vs lib/rubocop/cop/style/line_end_concatenation.rb in rubocop-0.48.1
- old
+ new
@@ -20,15 +20,15 @@
# 'bala'
#
class LineEndConcatenation < Cop
MSG = 'Use `\\` instead of `+` or `<<` to concatenate ' \
'those strings.'.freeze
- CONCAT_TOKEN_TYPES = %i(tPLUS tLSHFT).freeze
+ CONCAT_TOKEN_TYPES = %i[tPLUS tLSHFT].freeze
SIMPLE_STRING_TOKEN_TYPE = :tSTRING
- COMPLEX_STRING_EDGE_TOKEN_TYPES = %i(tSTRING_BEG tSTRING_END).freeze
- HIGH_PRECEDENCE_OP_TOKEN_TYPES = %i(tSTAR2 tPERCENT tDOT
- tLBRACK2).freeze
- QUOTE_DELIMITERS = %w(' ").freeze
+ COMPLEX_STRING_EDGE_TOKEN_TYPES = %i[tSTRING_BEG tSTRING_END].freeze
+ HIGH_PRECEDENCE_OP_TOKEN_TYPES = %i[tSTAR2 tPERCENT tDOT
+ tLBRACK2].freeze
+ QUOTE_DELIMITERS = %w[' "].freeze
def investigate(processed_source)
processed_source.tokens.each_index do |index|
check_token_set(index)
end