class RuboCop::Cop::Lint::NextWithoutAccumulator

def on_numblock(node)

def on_numblock(node)
  on_numblock_body_of_reduce(node) do |body|
    void_next = body.each_node(:next).find do |n|
      n.children.empty? && parent_numblock_node(n) == node
    end
    add_offense(void_next) if void_next
  end
end