Pre-Push Quality Checks
Run the full quality gate: vet, lint, and tests with race detection. Stops at the first failure category.
Usage
/check- Check all packages/check ./internal/repo/...- Check specific package
Steps
- Run go vet
```bash
go vet $ARGUMENTS 2>&1
```
If no arguments: go vet ./... 2>&1
If vet fails, report errors and stop.
- Run golangci-lint
```bash
golangci-lint run $ARGUMENTS 2>&1
```
If no arguments: golangci-lint run ./... 2>&1
If lint fails, report errors and stop.
- Run tests with race detector
```bash
go test -race -timeout 5m $ARGUMENTS 2>&1
```
If no arguments: go test -race -timeout 5m ./... 2>&1
- Report results
```
## Pre-Push Check Results
| Step | Status |
|------|--------|
| go vet | pass/fail |
| golangci-lint | pass/fail |
| go test -race | pass/fail |
### Issues
- [details of any failures]
```
CI Alignment
This mirrors what CI runs on every push. Running /check locally before pushing avoids CI failures and saves time.