docs: pin golangci-lint version to match ci (#135)

the lint steps said `golangci-lint run` with no version. ci pins
v2.11.4 and .golangci.yml is a v2 config tuned for it, so a contributor
on another version gets spurious findings from unrelated linters.
document the pinned invocation in both the dev guide and the readme so
local runs match ci.

fixes #65
This commit is contained in:
Tigah
2026-06-22 16:48:55 -07:00
committed by GitHub
parent 95523bc344
commit e2a26c19c6
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ contributions welcome. see [contributing.md](CONTRIBUTING.md) for guidelines.
gofmt -w .
# lint
golangci-lint run
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4 run
# test
go test ./...
+5 -2
View File
@@ -60,8 +60,11 @@ gofmt -w .
### lint
ci pins golangci-lint v2.11.4 (`.github/workflows/go.yml`); other versions
report spurious issues against the v2 config, so pin it locally too:
```bash
golangci-lint run
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4 run
```
### test
@@ -164,7 +167,7 @@ go test -tags=integration ./internal/scan/...
1. fork the repository
2. create a feature branch
3. make changes
4. run `gofmt -w .` and `golangci-lint run`
4. run `gofmt -w .` and `golangci-lint run` (pinned version, see [lint](#lint))
5. submit pr
### commit messages