docs: add verification script to pre-commit checklist
- Add 'Run verification script' as first step in Before Committing - Add verification script to Phase Completion Verification - Ensures guideline compliance before commits - Catches errors early in development workflow - Verification must pass (0 errors) before declaring complete
This commit is contained in:
@@ -300,6 +300,8 @@ git checkout -- internal/handlers/auth.go
|
||||
- [ ] Verify backward compatibility
|
||||
|
||||
### Before Committing
|
||||
- [ ] **Run verification script**: `bash scripts/verify-guidelines.sh`
|
||||
- [ ] **Fix any errors** before committing (warnings should be reviewed)
|
||||
- [ ] Run tests: `go test ./... -v`
|
||||
- [ ] Run lint/typecheck if available
|
||||
- [ ] Ensure no secrets in changes
|
||||
@@ -327,6 +329,7 @@ git checkout -- internal/handlers/auth.go
|
||||
- [ ] No unintended code was deleted
|
||||
- [ ] All affected files compile successfully
|
||||
- [ ] Run `go build ./...` for entire project
|
||||
- [ ] **Run verification script**: `bash scripts/verify-guidelines.sh` - must pass (0 errors)
|
||||
- [ ] No critical functionality was broken
|
||||
- [ ] Git diff shows only intended changes
|
||||
- [ ] Review all modified files with `git diff --stat`
|
||||
|
||||
Reference in New Issue
Block a user