Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Autoformat code on main branch #6

Merged
merged 9 commits into from
Jan 3, 2024
Merged

Autoformat code on main branch #6

merged 9 commits into from
Jan 3, 2024

Conversation

amika-sq
Copy link
Contributor

@amika-sq amika-sq commented Jan 3, 2024

This PR adds a new Github action that will use Apple's swift-format tool (link to Github project) to automatically format all code on the main branch.

The configuration for this formatting is found in the .swift-format file. This is the default configuration with the following changes:

  • Indentation is 4 spaces (instead of swift-format's default 2 spaces)
  • Line length of 120 (instead of swift-format's default 100)

@amika-sq amika-sq merged commit d8b78d8 into main Jan 3, 2024
1 check passed
@amika-sq amika-sq deleted the format branch January 3, 2024 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant