Repository navigation
ci: Drop the stale clippy::too_many_lines allow in the parity test (#962) - #2639
Conversation
) The file-level `#![allow(...)]` in the obs-properties parity test named `clippy::too_many_lines`, but that lint is not enabled anywhere in the tree: `[workspace.lints.clippy]` sets only `wildcard_imports` and `enum_glob_use`, there is no root `clippy.toml`, and the lint lane runs `clippy ... -- -D warnings` without `clippy::pedantic`. The suppression never fired, so an `expect` (the rule's generic note) would be unfulfilled and fail the build; drop the stale lint instead and keep the two that do fire (`missing_safety_doc`, `new_without_default`). Clears the one unexcepted `[RUST-018] VIOLATION` the ci-lint pin reports.
|
Handed off to the coordinator.
|
zackees
left a comment
There was a problem hiding this comment.
Coordinator review (author account, so comment rather than approval).
Verdict: correct, nothing to change. The removed item was the only banned complexity lint in that allow; clippy::missing_safety_doc and clippy::new_without_default stay, and the attribute collapses to one line. git grep too_many_lines over the tree (excluding docs/ci-evidence) finds no clippy configuration enabling it, so dropping the suppression cannot trip a lint — it also means the suppression was dead, which is exactly the RUST-018 shape.
Verified on 0026d065f: ci-lint precheck gives 16 violations / 557 approved exceptions (master's 17 with the [RUST-018] rust/obs-properties/tests/properties/parity.rs:14 finding), i.e. one burnt down with no new one. docs/features.md: correctly untouched (test tooling only).
Refs #962 (ci-lint burn-down, RUST-018).
rust/obs-properties/tests/properties/parity.rscarried a file-level#![allow(clippy::missing_safety_doc, clippy::too_many_lines, clippy::new_without_default)].The only banned complexity lint in it is
clippy::too_many_lines, and thatsuppression is dead:
too_many_linesis not enabled anywhere in the tree.RED
ci-lint precheckonorigin/master(pina1917ce7…) reports it as the one unexcepted RUST-018 finding:GREEN
Commit
0026d065f: theallowno longer namesclippy::too_many_lines— the two lints that do fire stay allowed.#![allow(clippy::missing_safety_doc, clippy::new_without_default)]Why delete the lint, not switch to
expectRUST-018's generic fix note says "replace
allowwithexpect". That isunsafe here: an
expectthat never fires is itself an error(
unfulfilled_lint_expectations), andtoo_many_linesnever fires in thistree —
[workspace.lints.clippy]sets onlywildcard_imports/enum_glob_use(the two RUST-018
Cargo.tomlfindings are approved exceptions);clippy.toml;clippy … -- -D warningswith noclippy::pedanticenablement (and
too_many_linesis a pedantic, allow-by-default lint).So the correct burn-down is to drop the stale lint from the
allow, not to addan expectation that would fail the build.
Verification
soldr cargo clippy -p obs-properties --all-targets --locked -- -D warnings—Finished, exit 0 (this compiles thepropertiestest target theallowlives in, so the removal is proven safe, not just rule-clean).soldr cargo fmt -p obs-properties -- --check— clean.No
docs/features.mdline: no user-visible change (a lint-suppression cleanup).