nats-io / nats.swift

Swift client for NATS, the cloud native messaging system.
Apache License 2.0
22 stars 4 forks source link

Add formatter and format/lint code #31

Closed piotrpio closed 9 months ago

piotrpio commented 9 months ago

This PR adds official apple/swift-format config and formats the code accordingly.

To install swift-format on mac:

brew install swift-format

Format code using .swift-format cofig:

swift-format format -i --configuration .swift-format -r .

To lint code:

swift-format lint --configuration .swift-format -r Sources Tests

Signed-off-by: Piotr Piotrowski piotr@synadia.com