class RuboCop::Cop::Layout::EmptyComment

def on_new_investigation

def on_new_investigation
  if allow_margin_comment?
    comments = concat_consecutive_comments(processed_source.comments)
    investigate(comments)
  else
    processed_source.comments.each do |comment|
      next unless empty_comment_only?(comment_text(comment))
      add_offense(comment) { |corrector| autocorrect(corrector, comment) }
    end
  end
end