Skip to content

Commit d20d704

Browse files
committed
Update Golangci-lint config.
1 parent 0f1de50 commit d20d704

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

.golangci.yml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
1+
version: "2"
12
linters:
2-
enable-all: true
33
disable:
4+
- cyclop
5+
- depguard
46
- dupl
5-
- wrapcheck
7+
- exhaustruct
68
- forbidigo
79
- funlen
8-
- gocognit
9-
- varnamelen
10-
- cyclop
1110
- gochecknoglobals
12-
- exhaustivestruct
13-
- exhaustruct
11+
- gocognit
1412
- lll
15-
- depguard
13+
- varnamelen
14+
- wrapcheck
15+
exclusions:
16+
generated: lax
17+
presets:
18+
- comments
19+
- common-false-positives
20+
- legacy
21+
- std-error-handling
22+
paths:
23+
- third_party$
24+
- builtin$
25+
- examples$
26+
formatters:
27+
enable:
28+
- gci
29+
- gofmt
30+
- gofumpt
31+
- goimports
32+
exclusions:
33+
generated: lax
34+
paths:
35+
- third_party$
36+
- builtin$
37+
- examples$

0 commit comments

Comments
 (0)