Skip to content

Commit 826c201

Browse files
committed
docs: align local checks with ci
1 parent cdfcb52 commit 826c201

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ Before finishing a change, run:
1515
gofmt -w cmd internal
1616
go test -coverprofile=coverage.out ./...
1717
go vet ./...
18-
slophammer-go check . --coverage-profile coverage.out
18+
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.0 run
19+
./scripts/check-go-coverage.sh
20+
go run github.com/dutifuldev/slophammer/go/cmd/slophammer-go@v0.4.0 dry . --max-candidates 0
21+
go run github.com/dutifuldev/slophammer/go/cmd/slophammer-go@v0.4.0 crap . --max-score 8
22+
go run github.com/dutifuldev/slophammer/go/cmd/slophammer-go@v0.4.0 check . --coverage-profile coverage.out --only go.coverage-required --only go.dry-required --only go.crap-required
1923
git diff --check
2024
```
2125

22-
If `slophammer-go` is not installed, use the matching Go checker from a local
23-
Slophammer checkout and state that path in the handoff.
26+
Use the pinned `go run` commands above so local checks match CI.
2427

2528
## Go Rules
2629

0 commit comments

Comments
 (0)