Skip to content

Add ability to exclude files #864

@kentcb

Description

@kentcb

I'm using dartfmt via flutter format, which I run it like this:

flutter format .

This formats all .dart files recursively, which is almost exactly what I want. Unfortunately, it also formats .g.dart files, so my generated files bounce between their generated state and a formatted version thereof.

It would be very useful if dartfmt could exclude files matching certain patterns. Something like:

dartfmt -e *.g.dart -e *.foo.dart .

(surfacing this via flutter format would of course be a separate issue)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions