Skip to content

Commit 9b0f9f2

Browse files
authored
Merge pull request #14 from arnaud-dfns/chore/golangci-lint-v2
chore: golangci-lint migrate
2 parents c1a16f3 + aa6b8a4 commit 9b0f9f2

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: go mod download
3131
- run: go build -v .
3232
- name: Run linters
33-
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
33+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3434
with:
3535
version: latest
3636

.golangci.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
1-
# Visit https://golangci-lint.run/ for usage documentation
2-
# and information on other useful linters
3-
issues:
4-
max-issues-per-linter: 0
5-
max-same-issues: 0
6-
1+
version: "2"
72
linters:
8-
disable-all: true
3+
default: none
94
enable:
105
- copyloopvar
116
- durationcheck
127
- errcheck
138
- forcetypeassert
149
- godot
15-
- gofmt
16-
- gosimple
1710
- govet
1811
- ineffassign
1912
- makezero
2013
- misspell
2114
- nilerr
2215
- predeclared
2316
- staticcheck
24-
- tenv
2517
- unconvert
2618
- unparam
2719
- unused
20+
exclusions:
21+
generated: lax
22+
presets:
23+
- comments
24+
- common-false-positives
25+
- legacy
26+
- std-error-handling
27+
paths:
28+
- third_party$
29+
- builtin$
30+
- examples$
31+
issues:
32+
max-issues-per-linter: 0
33+
max-same-issues: 0
34+
formatters:
35+
enable:
36+
- gofmt
37+
exclusions:
38+
generated: lax
39+
paths:
40+
- third_party$
41+
- builtin$
42+
- examples$

0 commit comments

Comments
 (0)