lib/rubocop/cop/mixin/space_before_punctuation.rb in rubocop-0.35.1 vs lib/rubocop/cop/mixin/space_before_punctuation.rb in rubocop-0.36.0

- old
+ new

@@ -1,12 +1,13 @@ # encoding: utf-8 +# frozen_string_literal: true module RuboCop module Cop # Common functionality for cops checking for space before # punctuation. module SpaceBeforePunctuation - MSG = 'Space found before %s.' + MSG = 'Space found before %s.'.freeze def investigate(processed_source) processed_source.tokens.each_cons(2) do |t1, t2| next unless kind(t2) && t1.pos.line == t2.pos.line && t2.pos.begin_pos > t1.pos.end_pos &&