cargo-clippy
should not fail early on lints that default to deny
#87334
Labels
A-clippy
Area: Clippy
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Latest stable
cargo check
andcargo build
(1.53.0
) both succeed on BurntSushi/ripgrep@0ff5dd2, butcargo clippy
fails on a lint that defaults to deny.My expectation with a linter is that, on a well-formed AST (i.e. one that successfully can be compiled), it should show me all the lint errors in the code being linted so that I can triage/address them at my/our own discretion. Currently
clippy
bails out fast.Although it is possible to downgrade
deny
lints towarn
, I don't think this is very desirable, since it causes the user to lose information about the severity of the lint issue.It was pointed out to me in the Zulip (thanks @jyn514 !) that there are a few levels of issues here:
The text was updated successfully, but these errors were encountered: