Skip to content

Commit 9db3b41

Browse files
committed
Update linters and add exclusions in golangci.yaml
1 parent b1fa930 commit 9db3b41

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.golangci.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1+
version: "2"
12
linters:
23
enable:
34
- cyclop
45
- dupl
56
- durationcheck
67
- errorlint
78
- exhaustive
8-
- exportloopref
99
- forcetypeassert
1010
- gocognit
1111
- goconst
1212
- gocritic
1313
- gocyclo
14-
- gofmt
15-
- mnd
1614
- gosec
1715
- lll
1816
- makezero
17+
- mnd
1918
- nakedret
2019
- nestif
2120
- nilerr
@@ -25,3 +24,23 @@ linters:
2524
- unparam
2625
- wastedassign
2726
- wrapcheck
27+
exclusions:
28+
generated: lax
29+
presets:
30+
- comments
31+
- common-false-positives
32+
- legacy
33+
- std-error-handling
34+
paths:
35+
- third_party$
36+
- builtin$
37+
- examples$
38+
formatters:
39+
enable:
40+
- gofmt
41+
exclusions:
42+
generated: lax
43+
paths:
44+
- third_party$
45+
- builtin$
46+
- examples$

0 commit comments

Comments
 (0)