-
Notifications
You must be signed in to change notification settings - Fork 677
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
[idea] Use rustfmt in CI for style checks #770
Comments
I used to run this for my projects but found that it was unstable. I don't believe it's reasonable at this point to use rustfmt in CI, especially since it'll likely point out many errors unrelated to the current PR. I think this would be a good thing to do for 1.0, however. Same with running Clippy on all PRs. |
@Susurrus Shall we reconsider enabling this check today? I mean |
I think enabling a This can be done via |
1748: Add format test to CI r=rtzoeller a=costinsin To enforce uniformity for all PRs, the CI checks if the code is formatted right using `cargo fmt` tool. Results after implementing the format test in CicleCI, but before fixing the format errors: https://cirrus-ci.com/build/4684991404703744 Results after fixing the format errors: https://cirrus-ci.com/build/5423803479097344 Solves #770 Co-authored-by: Costin-Robert Sin <[email protected]>
@rtzoeller Pretty sure this was fixed by #1748 |
I'm not sure. Try checking out and running |
Huh, it seems like we're running into this issue: rust-lang/rustfmt#3253 |
This could prevent many style review comments in PRs.
The text was updated successfully, but these errors were encountered: