-
Notifications
You must be signed in to change notification settings - Fork 24
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
Run clippy on a fixed version of rustc #18
Comments
I'm of two minds on this. On the one hand, I agree that it's unfortunate for newcomers to be met with clippy errors on code they didn't introduce, but at the same time I think it's important to keep clippy up-to-date, otherwise it is so easy to miss new true error cases that clippy identifies. Pinning to an older version means that we're losing out on improvements (and, yes, new warnings) from clippy, and authors now have to remember to bump their clippy version (which, my guess is, no-one will remember). I think my vote here would still be to use clippy from |
I strongly disagree. One of my guiding principles is that the CI should never be red, especially for new contributors. Also, I suspect I put a lower value on new clippy warnings. I'm fine with the suggestion of tying clippy to minrust. It is rare for minrust to be more than a couple versions (I think I've seen one case of 15 releases back and one case that goes to rustc 1.0) and I've generally not seen new lints introduced that make me want to upgrade. |
I think this gets pretty difficult to enforce, especially if we make I think clippy from |
Too many spurious failures, which lead to people ignoring errors. Fixes #18
Too many spurious failures, which lead to people ignoring errors. Progress towards #18.
By running clippy on a non-fixed version of rustc, CI will break as new clippy's introduce new checks. Having the CI fail on a new contributor can be discouraging and then once they realize it is a sporadic failure, it can give them the sense of the project being not well maintained.
To resolve this, I've found pinning the version of rustc to be the best approach.
The text was updated successfully, but these errors were encountered: