Skip to content

Commit a06b2d7

Browse files
committed
chore: migrate golangci-lint config to v2 format
golangci-lint-action v9 installs golangci-lint v2 which requires a new config format with version field, moved gofmt to formatters, merged gosimple into staticcheck, and restructured exclusion rules.
1 parent 0ec2203 commit a06b2d7

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

.golangci.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1+
version: "2"
2+
13
run:
24
timeout: 5m
3-
go: '1.23'
45

56
linters:
7+
default: none
68
enable:
7-
- gofmt
89
- govet
910
- errcheck
1011
- staticcheck
1112
- unused
12-
- gosimple
1313
- ineffassign
1414
- typecheck
15+
settings:
16+
errcheck:
17+
check-blank: false
18+
check-type-assertions: false
19+
exclusions:
20+
rules:
21+
- path: _test\.go
22+
linters:
23+
- errcheck
1524

16-
linters-settings:
17-
errcheck:
18-
check-blank: false
19-
check-type-assertions: false
20-
21-
issues:
22-
exclude-rules:
23-
- path: _test\.go
24-
linters:
25-
- errcheck
25+
formatters:
26+
enable:
27+
- gofmt

0 commit comments

Comments
 (0)