class Rubocop::Cop::Style::WhileUntilModifier

def investigate(processed_source)

def investigate(processed_source)
  return unless processed_source.ast
  on_node([:while, :until], processed_source.ast) do |node|
    # discard modifier while/until
    next unless node.loc.end
    if check(node, processed_source.comments)
      add_offence(:convention, node.loc.expression, MSG)
    end
  end
end