-
Notifications
You must be signed in to change notification settings - Fork 926
Option for --check to list violating files only #3738
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
Comments
I was just thinking about this one the other day, kinda like how black for python displays a There's a request (#3274) to add support for the Do you think something like the below would work for to generate the list of files? |
We can add a command line flag like the # Run `cargo fmt -- --check` but only prints file names which will be formatted
cargo fmt -- --check -l
# Run `cargo fmt` and print file names that were formatted
cargo fmt -- -l |
Even better! I'd be happy to look at implementing this @topecongiro once I've finished up my work with the json and checkstyle emitters |
That was quick! Awesome! |
Uh oh!
There was an error while loading. Please reload this page.
For our CI script we just want to say "cargo fmt needs to be run, here's the files that need it" which doesn't appear to be possible using
--check
. The diff output is kind of too noisy to be useful unless you expect the committer to actually fix the files by hand.The text was updated successfully, but these errors were encountered: