-
Notifications
You must be signed in to change notification settings - Fork 908
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
Add option to format all files #4977
Comments
Thanks for reaching out but going to close as this has been covered in various prior issues and is duplicative of existing behavior.
We're not going to change that. If for some reason folks want/need to run |
@calebcartwright Thank you for the information. That is unfortunate, but it makes sense. Sorry for not finding existing issues about this. They did not show up in a search. |
No worries, and thanks again for sharing! |
It would be helpful for rustfmt to have an option to format all
.rs
files in a crate or all files in a directory.Some issues exist due to rustfmt being unable to know exactly which files are included, due to
#[path]
attributes (1) or macros (1, 2, 3). However, usually, all that is needed is for every Rust file to be formatted. If rustfmt had an option to format all files, those issues would be avoided.This could be combined with the ignore option to exclude some files.
The text was updated successfully, but these errors were encountered: