add precommit hook
All checks were successful
Build and Test / splatoon (push) Successful in 3m12s
Build and Test / friends (push) Successful in 3m38s

This commit is contained in:
red binder 2026-04-26 15:09:03 +02:00
commit ebefd8f955
2 changed files with 17 additions and 0 deletions

14
buildscripts/pre-commit Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
echo "running cargo check..."
./check-all.sh
STATUS=$?
if [ $STATUS -ne 0 ]; then
echo "cargo check failed, aborting"
exit 1
fi
echo "cargo check passed"
exit 0

3
setup-hook.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cp buildscripts/pre-commit .git/hooks/