-
Notifications
You must be signed in to change notification settings - Fork 877
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
Option to configure how many lines down the @generated tag can be for format_generated_files? #5658
Labels
feature-request
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
p-low
Comments
Thanks for reaching out. Seems like a reasonable enough request, and this should be a simple change.
|
ytmimi
added
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
p-low
feature-request
labels
Jan 11, 2023
This was referenced Jan 14, 2023
It looks like this can be closed as #5918 solves this? |
@IVIURRAY the PR that you're referring to was closed but never merged. This issue should stay open. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature-request
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
p-low
In Relay we have a large number of generated files which are required by our business to being with a specific copyright header that is slightly more than five lines. This means we can't take advantage of the format_generated_files feature.
Example file: https://github.com/facebook/relay/blob/603bb4bc2927bda8b7f0dac1d86cbc5ecbf50202/compiler/crates/relay-lsp/tests/hover_test.rs
Would it be possible to make the 5 lines limit configurable?
The text was updated successfully, but these errors were encountered: