chore: pre-commit ci hook, dart format

This commit is contained in:
edde746
2026-04-18 12:40:35 +02:00
parent 2bd9e6655f
commit 3da51f9d64
128 changed files with 2056 additions and 2048 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
chmod +x .githooks/pre-commit scripts/ci_checks.sh
git config core.hooksPath .githooks
cat <<EOF
Git hooks installed.
pre-commit runs the CI analyze pipeline (format + analyze + unused code + unused files)
Bypass once: git commit --no-verify
Bypass env: SKIP_HOOKS=1 git commit ...
Run manually: ./scripts/ci_checks.sh
Uninstall: git config --unset core.hooksPath
EOF