Swiftformat on githooks + New swift run tools setup command (#563)

This commit is contained in:
Mauro
2023-02-10 14:04:00 +01:00
committed by GitHub
parent f0a4cfd946
commit c8fb93e00d
11 changed files with 123 additions and 32 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
export PATH="$PATH:/opt/homebrew/bin"
if ! swiftformat --lint . > /dev/null 2>&1
then
echo "pre-commit: Commit aborted due to SwiftFormat warnings. Please check the automatically generated fixes and try again"
swiftformat . > /dev/null 2>&1
exit 1
fi