-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: reduce all "deny" and "forbid" lints to "warn" #7692
Conversation
f06928d
to
e1ee289
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as how I already do this for dataflow in #7690, I'm ok with this! The "no turning the level down" check does hurt a bit to lose, but this might be an interesting skunkworks project (;
Lints at the deny/forbid level can be very frustrating when developing, because you're forced to comply with the lint even when you're still prototyping, just to get your code to compile. This commit downgrades all these lints to "warn", to optimize for the development experience. In CI, these lints are still enforced at the "deny" level by our Clippy configuration, which upgrades all warnings to hard errors. The one glitch here is that `forbid` used to prevent submodules from re-enabling the forbidden lint. I propose that we solve this socially, by making it taboo to add `#![allow(missing_docs)]` unless you've gotten buy-in from the overall owner of that area of the codebase.
e1ee289
to
31af7bd
Compare
We could remove the four occurrences, and then lint for it in CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I love this
Yeah, the big sticking point there is https://github.com/MaterializeInc/materialize/blob/main/src/pgrepr/src/oid.rs. I feel like enabling |
Lints at the deny/forbid level can be very frustrating when developing,
because you're forced to comply with the lint even when you're still
prototyping, just to get your code to compile.
This commit downgrades all these lints to "warn", to optimize for the
development experience. In CI, these lints are still enforced at the
"deny" level by our Clippy configuration, which upgrades all warnings to
hard errors.
The one glitch here is that
forbid
used to prevent submodules fromre-enabling the forbidden lint. I propose that we solve this socially,
by making it taboo to add
#![allow(missing_docs)]
unless you've gottenbuy-in from the overall owner of that area of the codebase.