-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove rustfmt
from travis builds
#1487
Comments
we can set it up so that rustfmt is required to be run once a month. That way we won't diverge much and it doesn't influence day to day business. |
I'm okay with the suboptimal suggestions, since the vast majority of suggestions are good, and the suboptimal ones are subjective. The local/travis thing is a version issue.
It tends to diverge quickly IME. We might have better experiences here though. |
I think the idea of running rustfmt on travis is good. But you should definitely pin it to a specific version to make it more deterministic. Also, while you are at it, please consider using block ident for function arguments, which reduces line length as well as diff churn. rustfmt has |
Perhaps running it (to inform rustfmt devs) without failing the build? |
It's possible to set up travis targets that don't fail the build, but they won't show up red in the pr, just in travis. |
If it doesn't fail the build, nobody's gonna notice. Unless you manage to write a script that automatically comments on the PR with the rustfmt diff. (Just like the one I want for compiler warnings.) |
True. |
You can set up a CircleCI build or something, so you get a separate
indicator. Gate merges on travis only.
…-Manish Goregaokar
On Sat, Jan 28, 2017 at 9:21 AM, llogiq ***@***.***> wrote:
True.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/Manishearth/rust-clippy/issues/1487#issuecomment-275861107>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABivSMLdOXwiA5eYJG9TnSgzNKvSMn-Qks5rW3kEgaJpZM4LwgU7>
.
|
Alternatively we set up a travis job that only does rustfmt checks and use something like https://github.com/wizeline/travieso#heroku , but I don't have a heroku or other server to host it on. Or we wait until travis-ci/travis-tasks#78 is merged to automatically get one icon per github job. Or we just remove the rustfmt checks and add a travis job on master commits that automatically runs rustfmt and pushes a commit to the master branch if rustfmt changed anything. |
A great argument from @dtolnay against rustfmt as a blocker or even showing up in travis:
|
Although I feel like the same argument could be made for |
👍 We've already had people complaining that they can't use a lint described in the README because it was not published yet. |
We can add a
I don't like several tools hidden in different folders. |
I vote to remove
rustfmt
from travis.I find it really annoying, blindly applying
rustfmt
suggestions does not make the code clearer in lots of instances and even often make it worst (recent example).It also seems really hard to make
rustfmt
happy both locally and on travis (1, 2, 3).The text was updated successfully, but these errors were encountered: