Skip to content

Commit a8fbd63

Browse files
committed
Update golangci-lint
Update to a more recent supported version. This is also needed to keep the github action up to date. Signed-off-by: Derek McGowan <derek@mcg.dev>
1 parent bf8a9d9 commit a8fbd63

2 files changed

Lines changed: 41 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
cache: false # see actions/setup-go#368
3939

4040
- uses: actions/checkout@v6
41-
- uses: golangci/golangci-lint-action@v6
41+
- uses: golangci/golangci-lint-action@v9
4242
with:
43-
version: v1.61.0
43+
version: v2.6.2
4444
skip-cache: true
4545
args: --timeout=5m
4646

.golangci.yml

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,49 @@
1+
version: "2"
12
linters:
23
enable:
34
- copyloopvar
4-
- gofmt
5-
- goimports
5+
- dupword
66
- gosec
7-
- ineffassign
87
- misspell
98
- nolintlint
109
- revive
11-
- staticcheck
12-
- tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
1310
- unconvert
14-
- unused
15-
- govet
16-
- dupword # Checks for duplicate words in the source code
1711
disable:
1812
- errcheck
19-
20-
run:
21-
timeout: 5m
22-
23-
issues:
24-
exclude-dirs:
25-
- api
26-
- cluster
27-
- design
28-
- docs
29-
- docs/man
30-
- releases
31-
- reports
32-
- test # e2e scripts
13+
exclusions:
14+
generated: lax
15+
presets:
16+
- comments
17+
- common-false-positives
18+
- legacy
19+
- std-error-handling
20+
paths:
21+
- api
22+
- cluster
23+
- design
24+
- docs
25+
- docs/man
26+
- releases
27+
- reports
28+
- test
29+
- third_party$
30+
- builtin$
31+
- examples$
32+
formatters:
33+
enable:
34+
- gofmt
35+
- goimports
36+
exclusions:
37+
generated: lax
38+
paths:
39+
- api
40+
- cluster
41+
- design
42+
- docs
43+
- docs/man
44+
- releases
45+
- reports
46+
- test
47+
- third_party$
48+
- builtin$
49+
- examples$

0 commit comments

Comments
 (0)