Commit e8b5bc5
ci: migrate golangci-lint to v2 (#12)
golangci-lint v1.55 (action@v2) can't run against the module's Go
version, and the v1 .golangci.toml is rejected by current golangci-lint
("unsupported version of the configuration").
- Migrate the config to the v2 schema (.golangci.yml). Same linter set;
gofmt/goimports move to `formatters`, vet->govet (+shadow).
- Bump golangci-lint-action v2 -> v9, pin golangci-lint v2.11.4, add a
setup-go step on stable, and update actions/checkout v2 -> v7.
Code passes the migrated config with 0 issues.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8130d77 commit e8b5bc5
3 files changed
Lines changed: 34 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
| 24 | + | |
20 | 25 | | |
21 | | - | |
| 26 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments