Skip to content

Adopt ktfmt? #559

@jselbo

Description

@jselbo

Would there be any opposition to adopting a Kotlin formatter like ktfmt in this project?

The pros of using a formatter is that authors don't need to worry about manual formatting (or remembering to run the IDE code formatter). It also auto-sorts imports. I think the biggest downside is that the initial formatting diff messes up Git blame, so people may have to click through the revision when checking blame.

See:
https://github.com/facebook/ktfmt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions