Files
vectorcraft/xtask
dotCooCoo 77e37176e2 xtask: test-lint no longer reports helper, diagnostic and fixed-size false alarms
no-assertion:
- A call in a top-level test reaches the helper its own file defines. A
  non-asserting helper of the same name in another file of the crate no
  longer hides it (several_handles.rs `near` beside affinity_features.rs).
  Names the file also calls with a path, and definitions below the file's
  top level, keep the crate's verdict.
- An `#[ignore = "reason"]` test that prints is a diagnostic and needs no
  assertion.
- An asserting function passed by name as a value
  (`keeping_color_settings(the_body)`) counts as the test's check, also
  through a helper that passes it, unless a local binding or parameter
  shadows the name.

all-unguarded:
- A parenthesized range of literals or constants, `(0..3).all(...)`.
- A receiver whose source an earlier `assert_eq!` compares with a
  non-empty literal: a local collected from the receiver, or a call on the
  same local the receiver was made from, when nothing changes the source
  in between.
- A call to a function of the file that lists a constant table and
  filters it only on parameters that are not references.

On the whole tree, `cargo xtask test-lint --all` reports 96 no-assertion
hits instead of 157 and 375 all-unguarded hits instead of 419.
2026-12-01 07:40:34 -08:00
..