Skip to content

Formatting only specific line ranges #223

Open
@infinisil

Description

The context for this is here.

For a more future-proof solution, we should consider implementing a partial formatter mode, which can be told to format only specific line ranges of a file. This way we can extend the conflict-avoiding trick to format all line ranges that aren't touched by recent PRs.

The alternative of just ripping the band-aid off and formatting all files at some point also works, and would be much simpler at the expense of more conflicts. But especially as we change the formatter again over time we'll run into the same problem over and over again, whereas the line range conflict-avoiding trick would enable a smooth mode of operation that almost never causes any churn for other users.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    • Status

      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions