-
Notifications
You must be signed in to change notification settings - Fork 898
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 skip generated files #3958
Comments
I have seen |
Capnp does (I added that change). I also have an internal tool that does. Phabricator supports it and shows files containing |
Thank you for your information. It seems reasonable to have the option in rustfmt. |
Would be nice if rustfmt supported that out of the box. |
See https://generated.at/. This is already used by Cargo.lock and Rustfmt supports it: rust-lang/rustfmt#3958
There's a growing de facto standard to mark generated files by putting
@generated
in a comment at the top of the file. E.g. check the top ofCargo.lock
.It would be great if there were an option to have Rustfmt skip files that contain
@generated
.The text was updated successfully, but these errors were encountered: