Skip to content

Request for ktfmt Pre-commit Hook to Manage Trailing Commas #244

@connor-27

Description

@connor-27

Feature Description

As of ktfmt version 0.52 in IntelliJ, users can select "Custom" under "Code style," which provides the ability to customize certain formatting options. One significant feature seen in this version is the ability to manage trailing commas.

Feature Request

I would like to have this functionality available in the ktfmt pre-commit hooks as well. It would be beneficial for users to be able to enable or disable trailing commas during the pre-commit checks, providing more flexibility and adherence to varying code style preferences.

Additionally, it would be great to set a base configuration for the custom style using one of the predefined styles such as Meta, Google, or kotlinlang.

Inquiry

Is there any plan to update the pre-commit hooks to include this feature? If not, could this be considered for future updates?

Thank you for considering this enhancement to ktfmt pre-commit hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions