1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 17:55:08 +00:00

chore: add pre-commit hook and update review skill to mirror GitHub CI

.githooks/pre-commit runs bash syntax check, shfmt format check,
shellcheck, and go vet against staged files on every commit.
Catches the same issues as check.yml before they reach GitHub.

Also update CONTRIBUTING.md setup instructions to include
`git config core.hooksPath .githooks`.
This commit is contained in:
Tw93
2026-03-15 09:08:56 +08:00
parent 45c98c2ec8
commit 398097162c
2 changed files with 99 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ brew install shfmt shellcheck bats-core golangci-lint
# Install goimports for better Go formatting
go install golang.org/x/tools/cmd/goimports@latest
# Install pre-commit hook (runs format/lint checks on every commit)
git config core.hooksPath .githooks
```
## Development