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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user