-
Notifications
You must be signed in to change notification settings - Fork 747
Clippy: Move configuration to Cargo.toml #4082
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
Conversation
Every create needs ``` [lints] workspace = true ``` to use our global clippy config.
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.
Woohoo! Fewer magic Makefile incantations!
Looks like others have run into the inheritance problem as well: oxidecomputer/omicron#5715 This seems to be the relevant issue for inheritance: rust-lang/cargo#12208 |
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.
I wonder how often we're going to forget to add this to a Cargo.toml
when making a new one? Hopefully that you've added them to every example in Tock means people will just copy-paste and won't forget it.
Worse, if you do forget, you might end up fixing clippy lints that seem "odd" because they are on by default but all other tock code doesn't use them. |
All reactions
-
😕 1 reaction
Sorry, something went wrong.
the best thing about this is that |
All reactions
-
🚀 2 reactions
Sorry, something went wrong.
alevy
brghena
ppannuto
lschuermann
Successfully merging this pull request may close these issues.
Pull Request Overview
As of last year I think (rust-lang/rfcs#3389) we can now control clippy configs in the workspace Cargo.toml. This means we do not need our run_clippy script and that
cargo clippy
just works.The downside is every Cargo.toml needs
but what can you do.
Testing Strategy
travis
TODO or Help Wanted
n/a
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.