mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Swiftformat on githooks + New swift run tools setup command (#563)
This commit is contained in:
Executable
+10
@@ -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
|
||||
Reference in New Issue
Block a user