refactor: shrink pre-commit hook to the gate itself
Tests / PHP 8.4 (push) Failing after 6m20s

This commit is contained in:
dgarcia committed 2026-11-15 11:11:44 -03:00
1 parent 574b034d4c
commit 46d3ba10f0
1 file changed
+2 -18
+2 -18
View File
@@ -1,19 +1,3 @@
#!/bin/sh
#
# Runs the full gate before every commit. Enable it once per clone with:
# git config core.hooksPath .githooks
#
# Skip it for a single commit with:
# git commit --no-verify
set -e
echo "pre-commit: running composer check..."
if ! composer check; then
echo ""
echo "pre-commit: composer check failed. Fix it, or use 'git commit --no-verify' to bypass." >&2
exit 1
fi
echo "pre-commit: gate passed."
# Enable once per clone: git config core.hooksPath .githooks
composer check