Skip to content

Commit b7324f0

Browse files
committed
chore: upgrade golangci-lint config
1 parent 4d119e6 commit b7324f0

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

.golangci.yml

Lines changed: 27 additions & 12 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-per-linter: 0
5-
max-same-issues: 0
6-
1+
version: "2"
72
linters:
8-
disable-all: true
3+
default: none
94
enable:
5+
- copyloopvar
106
- durationcheck
117
- errcheck
12-
- copyloopvar
138
- forcetypeassert
149
- godot
15-
- gofmt
16-
- gosimple
1710
- ineffassign
1811
- makezero
1912
- misspell
2013
- nilerr
2114
- predeclared
2215
- staticcheck
23-
- tenv
2416
- unconvert
2517
- unparam
2618
- unused
27-
- govet
19+
- usetesting
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)