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 swift-format #44

Merged
merged 3 commits into from
Sep 28, 2024
Merged

Add swift-format #44

merged 3 commits into from
Sep 28, 2024

Conversation

pdil
Copy link
Member

@pdil pdil commented Sep 28, 2024

  • Added swift-format configuration and applied to entire project.

Adding the following commit hook in .git/hooks/pre-commit is recommended:

# swift format changed files
git diff --diff-filter=d --staged --name-only | grep -e '\(.*\).swift$' | while read line; do
    swift format -irp "${line}";
    git add "$line";
done

@pdil pdil added the tech Technical changes or requests not related to user functionality label Sep 28, 2024
@pdil pdil self-assigned this Sep 28, 2024
@pdil pdil marked this pull request as ready for review September 28, 2024 02:40
@pdil pdil merged commit 0b36cf9 into master Sep 28, 2024
5 of 6 checks passed
@pdil pdil deleted the feature/add-swift-format branch September 28, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech Technical changes or requests not related to user functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant