Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add formatter and format/lint code #31

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Add formatter and format/lint code #31

merged 3 commits into from
Feb 2, 2024

Conversation

piotrpio
Copy link
Contributor

@piotrpio piotrpio commented Feb 1, 2024

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

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio requested review from Jarema and mtmk February 1, 2024 16:00
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Jarema Jarema merged commit 67e12c6 into main Feb 2, 2024
1 check passed
@Jarema Jarema deleted the add-formatter branch February 2, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants