Files
vectorcraft/xtask
dotCooCoo 40cd9932eb xtask: test-lint sleep rule checks the spawn call, std imports and counted loops
- A spawned sleep is exempt only when the closure is the direct argument
  of `spawn`, not of a call inside it such as `spawn(prepare(|| …))`.
- A bare `spawn` or `sleep`, and a `thread::` path, count only where a
  `use` brings them in from `std::thread`; `crate::thread::spawn` and
  `std::thread::{self as worker}` do not.
- A sleep hit inside a spawned closure spans through the end of the
  spawn statement, so an edit that adds `.join()` there counts as a
  change. The brace-less `spawn(|| thread::sleep(D))` form gets the
  same span.
- A block operand after a spaced `<` or `>` stays in the loop condition.
- `while n < bound` with `n = n + 1` or `n = n - 1` in the body is a
  counted loop, like `n += 1`.
- Calls inside the arguments of `println!`, `eprintln!` and the log
  macros are not polling work.
2026-12-01 18:25:30 -08:00
..