Skip to content

Commit 37e8410

Browse files
committed
gha: update golangci/golangci-lint-action@v9, golangci-lint v2.7
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 071b17b commit 37e8410

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
go-version: ${{ matrix.go-version }}
2525

2626
- uses: actions/checkout@v6
27-
- uses: golangci/golangci-lint-action@v6
27+
- uses: golangci/golangci-lint-action@v9
2828
with:
29-
version: v1.59
29+
version: v2.7
3030
skip-cache: true
3131
args: --timeout=5m
3232

.golangci.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1+
version: "2"
12
linters:
23
enable:
3-
- depguard
4-
- staticcheck
5-
- unconvert
6-
- gofmt
7-
- goimports
8-
- ineffassign
9-
- govet
10-
- unused
114
- misspell
5+
- unconvert
126
disable:
137
- errcheck
14-
15-
linters-settings:
16-
depguard:
17-
rules:
18-
main:
19-
deny:
20-
- pkg: io/ioutil
21-
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
8+
settings:
9+
staticcheck:
10+
# Enable all options, with some exceptions.
11+
# For defaults, see https://golangci-lint.run/usage/linters/#staticcheck
12+
checks:
13+
- all
14+
- -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
15+
- -ST1000 # TODO: Incorrect or missing package comment; https://staticcheck.dev/docs/checks/#ST1000
16+
- -ST1003 # Poorly chosen identifier; https://staticcheck.dev/docs/checks/#ST1003
17+
formatters:
18+
enable:
19+
- gofmt
20+
- goimports

0 commit comments

Comments
 (0)