chore: make pre-commit hook quiet on success

This commit is contained in:
Tony Averty 2026-10-21 13:46:23 +02:00
parent ff940c5d6b
commit 7ef87ce20c
No known key found for this signature in database

View file

@ -17,4 +17,5 @@ if [ -n "$scan" ] && git diff --cached -U0 -- $scan | grep -E '^\+' | grep -Ei '
echo "✗ Un secret semble présent dans le diff. Vérifie avant de commit."; exit 1 echo "✗ Un secret semble présent dans le diff. Vérifie avant de commit."; exit 1
fi fi
npm run --silent check || { echo "✗ Lint/tests en échec, commit bloqué."; exit 1; } out=$(npm run --silent check 2>&1) || { echo "$out" | tail -40; echo "✗ Lint/tests en échec, commit bloqué."; exit 1; }
echo "✓ lint + tests OK"