repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

clarify expect header for lints

3dc1271afff820053a11565719b85383109a54e8

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

+1 / −1 text lines

Diff layout

.system/research/SMH-RESEARCH-JTJLLCMH-cargo-and-clippy-lint-scoping/index.md

Modified

+1 / −1 text lines

2626- `CLIPPY_CONF_DIR` is real and documented: priority CLIPPY_CONF_DIR → CARGO_MANIFEST_DIR → cwd, then parent walk.
2727- Empirically: without the env var, `clippy.toml` under `.config/` is NOT discovered — raw `cargo clippy` and rust-analyzer silently lose threshold configuration. With the env var (xtask gate), it parses.
2828- Clippy levels cannot be scoped by target type (`--tests`) through any cargo-native table; that gap is what invocation splitting covers.
29- `#[expect]` beats `-A` from the command line: an expected-but-allowed lint becomes an unfulfilled expectation error, so attrs and phase allowances do not compose silently.
29- `#[expect]` on items coexists with command-line `-A`: expectations stay fulfilled when the lint would fire without the allowance. File-level `#![expect]` headers on lints the phase allows become redundant but were not observed to error; either way, phase-covered expectations should be deleted.
3131## Idiomatic shape for smith