Files
vectorcraft/xtask
dotCooCoo 8f66d6ce50 xtask: test-lint sleep rule reads counted loops, aliases and nested blocks
- A `while n < bound` loop that adds to or subtracts from `n` in its body
  counts its own passes, so calls in the bound (`attempts.len()`) no
  longer exempt the sleep. A condition that also has `&&` or `||` keeps
  its calls as polling evidence.
- A change to the loop or spawn closure around a reported sleep counts as
  a change to the hit, so an edit that removes the poll from the
  condition fails the changed-line check.
- `use std::thread::spawn as spawn_thread;` and
  `use std::thread::sleep as nap;` no longer bring in the bare names, and
  `thread::sleep_ms` no longer matches `thread::sleep`.
- A `thread::spawn` path counts only where a `use` binds `thread` to
  `std::thread`, so a local `mod thread` with its own `spawn` is not
  exempt.
- A `;` inside a nested block in a loop condition
  (`while !ready({ let key = 1; key })`) no longer ends the header, and a
  block after `||` stays part of the condition.
- A sleep in a `let` initializer block inside a dropped spawn closure is
  exempt like the closure's other sleeps; the same block inside a polling
  loop is still reported.
2026-12-01 17:52:24 -08:00
..