You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've started using rustfmt in Travis and are looking at pre-commit hooks. We use cargo fmt -- --write-mode=diff but really would like an option that doesn't try to make any changes, but does print warnings and exit with status 1 if the formatting is not clean.
The text was updated successfully, but these errors were encountered:
Yes, I suppose that works well enough for CI. The only time it doesn't is when running rustfmt from the command line manually and not wanting a lot of output in the terminal.
But I don't have to use rustfmt any more so I don't particularly care ;)
We've started using
rustfmt
in Travis and are looking at pre-commit hooks. We usecargo fmt -- --write-mode=diff
but really would like an option that doesn't try to make any changes, but does print warnings and exit with status 1 if the formatting is not clean.The text was updated successfully, but these errors were encountered: