Skip to content

Commit 55ca154

Browse files
committed
update golangci config
1 parent 2b3f3d8 commit 55ca154

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

.golangci.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
version: 2
2-
run:
3-
timeout: 5m
1+
version: "2"
42
linters:
5-
disable:
6-
- errcheck
73
enable:
84
- bodyclose
95
- containedctx
@@ -12,7 +8,6 @@ linters:
128
- durationcheck
139
- errname
1410
- errorlint
15-
- gofmt
1611
- misspell
1712
- nilerr
1813
- nilnil
@@ -24,6 +19,27 @@ linters:
2419
- sqlclosecheck
2520
- unconvert
2621
- unparam
27-
- unused
2822
- wastedassign
2923
- whitespace
24+
disable:
25+
- errcheck
26+
exclusions:
27+
generated: lax
28+
presets:
29+
- comments
30+
- common-false-positives
31+
- legacy
32+
- std-error-handling
33+
paths:
34+
- third_party$
35+
- builtin$
36+
- examples$
37+
formatters:
38+
enable:
39+
- gofmt
40+
exclusions:
41+
generated: lax
42+
paths:
43+
- third_party$
44+
- builtin$
45+
- examples$

0 commit comments

Comments
 (0)