Skip to content

Commit b2d3d2d

Browse files
committed
golangci-lint: switch to v2
While at it, bump lint job actions to latest versions. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent ea247a9 commit b2d3d2d

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ on:
1111
jobs:
1212

1313
lint:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/setup-go@v5
16+
- uses: actions/setup-go@v6
1717
with:
1818
go-version: 1.x # latest
19-
- uses: actions/checkout@v4
20-
- uses: golangci/golangci-lint-action@v6
19+
- uses: actions/checkout@v5
20+
- uses: golangci/golangci-lint-action@v8
2121
with:
22-
version: v1.61
22+
version: v2.6
2323

2424
commit:
2525
runs-on: ubuntu-22.04

.golangci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
# For documentation, see https://golangci-lint.run/usage/configuration/
1+
version: "2"
2+
3+
formatters:
4+
enable:
5+
- gofmt
26

37
linters:
48
disable:
59
- errcheck
10+
settings:
11+
staticcheck:
12+
checks:
13+
- all # Enable all checks, except...
14+
- -ST1005 # https://staticcheck.dev/docs/checks/#ST1005 Incorrectly formatted error string.
15+
- -ST1000 # https://staticcheck.dev/docs/checks/#ST1000 Incorrect or missing package comment.

0 commit comments

Comments
 (0)