-
Notifications
You must be signed in to change notification settings - Fork 20
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
Finish setting up rustc/Clippy lints and fix those #695
Conversation
Nowadays, this is mostly a leftover that still includes `elided_lifetimes_in_paths`, see rust-lang/rust#91639 for the tracking issue.
They're pretty much what EDR settled for and serves as a good baseline. If we find we're limited by some lints, we can easily turn it off or include some more if we find them valuable.
This is already on-by-default and linted against by the compiler, so let's not make more noise by adding more extraneous warnings here.
|
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.
Left two concerns about error output from CLIs. Otherwise, LGTM!
Prefer linting against default ones and attempt to lint against some pedantic ones with select, documented exceptions.
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.
Looking great! thanks.
Part of #155
Commit messages have a bit more context on the relevant changes.
I've decided to drop very few lints from the EDR list like deny-by-default ones,
inconsistent_struct_constructor
(not that useful) orimplicit_clone
(a lot of false-positives/unidiomatic suggestions; let's wait for Rust 1.74 and rust-lang/rust-clippy#11281 to include it again) or irrelevant ones for us likesuboptimal_flops
.