class RuboCop::Cop::Style::MultilineBlockChain

end
t.object_id
alive_threads.map do |t|
end
t.alive?
alive_threads = Thread.list.select do |t|
# good
end
t.object_id
end.map do |t|
t.alive?
Thread.list.select do |t|
# bad
@example
multiple lines.
This cop checks for chaining of a block after another block that spans

def on_block(node)

def on_block(node)
  node.send_node.each_node(:send) do |send_node|
    receiver = send_node.receiver
    next unless receiver&.block_type? && receiver&.multiline?
    range = range_between(receiver.loc.end.begin_pos, node.send_node.source_range.end_pos)
    add_offense(range)
    # Done. If there are more blocks in the chain, they will be
    # found by subsequent calls to on_block.
    break
  end
end