Skip to content

FEATURE: -l/--files-with-updates option for swift format. #1067

@jglogan

Description

@jglogan

As a swift-format user, I can run my formatting rules with a dry-run option that only outputs the pathnames of files that would be formatted, so that I can easily implement user friendly check scripts or git hooks that can operate on my projects non-destructively.

See also gofmt -l: https://pkg.go.dev/cmd/gofmt

I thought I might take a crack at this feature but wanted to throw it up as an issue in case this feature exists in some form now and I just missed it, or in case it's considered not a good fit for the tool.

Searched through all the issues and couldn't find duplicates.

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