class RuboCop::Cop::Layout::EmptyComment
def concat_consecutive_comments(comments)
def concat_consecutive_comments(comments) consecutive_comments = comments.chunk_while { |i, j| i.loc.line.succ == j.loc.line } consecutive_comments.map do |chunk| joined_text = chunk.map { |c| comment_text(c) }.join [joined_text, chunk] end end