feat: add code format check in pre-push hook

This commit is contained in:
Tunglies
2025-06-18 18:43:59 +08:00
Unverified
parent 972310ea4e
commit f3ad6cee41

View File

@@ -8,4 +8,12 @@ if git diff --cached --name-only | grep -q '^src-tauri/'; then
fi
fi
if [[ "$(git rev-parse --show-toplevel)" == */clash-verge-rev/clash-verge-rev ]]; then
pnpm format:check
if [ $? -ne 0 ]; then
echo "Code format check failed. Please fix formatting before pushing."
exit 1
fi
fi
exit 0