module Rubocop::Cop::Style::SpaceAfterCommaEtc
def investigate(processed_source)
def investigate(processed_source) processed_source.tokens.each_cons(2) do |t1, t2| if kind(t1) && t1.pos.line == t2.pos.line && t2.pos.column == t1.pos.column + offset(t1) add_offence(:convention, t1.pos, sprintf(MSG, kind(t1))) end end end
def offset(token)
The normal offset, i.e., the distance from the punctuation
def offset(token) 1 end