-
Notifications
You must be signed in to change notification settings - Fork 90
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
Test Clippy Lint #388
Comments
cc @pietroalbini who mentioned they didn't think this would be too hard to add when I spoke with them on discord. |
Crater already supports denying lints (with That should be implemented as a new experiment mode called Since clippy is not installed by default you should also install it at the start of the runner (only when the experiment mode is Also, adding a test to minicrater would be awesome! If you want to work on this issue please comment on it so other contributors know it's taken. And if you need some help or you get stuck please reply here or ask on the |
I just started working on this. PR to come shortly. |
Add a new `clippy` mode to crater to test lint regressions Resolves #388. This adds a new mode, `clippy`, to crater which runs clippy on crates (duh :). I had to add some new options to minicrater, as well as change the invocation of `docker create`. See the commit messages for more info. This is still a work in progress as I'd like to add some documentation for the feature, but should be enough for a meaningful review.
Add a new `clippy` mode to crater to test lint regressions Resolves #388. This adds a new mode, `clippy`, to crater which runs clippy on crates (duh :). I had to add some new options to minicrater, as well as change the invocation of `docker create`. See the commit messages for more info. This is still a work in progress as I'd like to add some documentation for the feature, but should be enough for a meaningful review.
Add a new `clippy` mode to crater to test lint regressions Resolves #388. This adds a new mode, `clippy`, to crater which runs clippy on crates (duh :). I had to add some new options to minicrater, as well as change the invocation of `docker create`. See the commit messages for more info. This is still a work in progress as I'd like to add some documentation for the feature, but should be enough for a meaningful review.
@cramertj, This
|
I didn't have time to deploy the changes yet. |
Sorry! I don't understand how bors works I guess. |
The changes are merged by bors on the master branch, but unfortunately deploying them on the servers is still a manual process |
Now it's deployed! |
Unfortunately, denying clippy lints with cargo via I'm not sure how to proceed here. Perhaps this should be fixed in cargo or clippy? Otherwise we could pass flags to rustc without using the environment variable, or strip anything that looks like a clippy lint out before setting |
It'd be really helpful for rust-lang/rust#49000 (comment) to be able to find places in the ecosystem that trigger the clippy lint added in rust-lang/rust-clippy#3344. Would it be possible to add a feature to crater to allow running with a clippy warning set to deny-by-default?
The text was updated successfully, but these errors were encountered: