Skip to content

Add --exclude-formatters option #658

@MagicRB

Description

@MagicRB

Is your feature request related to a problem? Please describe.

It would be nice, when running treefmt --stdin to be able to exclude a formatter. In my case I want to exclude deadnix as I'm used to saving files aggressively (I use format on save) and deadnix keeps deleting my code.

Describe the solution you'd like

Add a --exclude-formatters flag, which is mutually exclusive with --formatters and allows me to specify which formatters to exclude.

Describe alternatives you've considered

Manually querying the list of formatters and excluding in a the eval block of .dir-locals.el.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions