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
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: