Skip to content

Option to configure how many lines down the @generated tag can be for format_generated_files? #5658

Closed
@captbaritone

Description

@captbaritone

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions