swiftlang / github-workflows

Apache License 2.0
26 stars 8 forks source link

Add optional SwiftFormat configuration file #33

Closed GErP83 closed 1 week ago

GErP83 commented 1 week ago

Some teams may prefer to use their own configuration when running SwiftFormat.

This can be supported using the "--configuration" parameter. The script can then also check for an optional .swiftformat file at the root of the repository.

Is this feature being considered? I’d be happy to implement it

FranzBusch commented 1 week ago

This repository uses https://github.com/swiftlang/swift-format for the formatting workflow. Placing a .swift-format file at the root of the repo should get picked up automatically.

GErP83 commented 1 week ago

Thank you for the answer!