.golangci.yml raw
1 version: "2"
2 run:
3 tests: false
4 linters:
5 default: all
6 disable:
7 - bodyclose
8 - cyclop
9 - depguard
10 - dupl
11 - err113
12 - errcheck
13 - errname
14 - errorlint
15 - exhaustive
16 - exhaustruct
17 - forcetypeassert
18 - gochecknoglobals
19 - gochecknoinits
20 - godot
21 - inamedparam
22 - lll
23 - musttag
24 - nilerr
25 - nlreturn
26 - noinlineerr
27 - nolintlint
28 - nonamedreturns
29 - perfsprint
30 - recvcheck
31 - staticcheck
32 - tagliatelle
33 - varnamelen
34 - wrapcheck
35 - wsl
36 settings:
37 dupl:
38 threshold: 100
39 errcheck:
40 check-type-assertions: true
41 check-blank: true
42 gocognit:
43 min-complexity: 30
44 gocyclo:
45 min-complexity: 30
46 govet:
47 enable:
48 - atomicalign
49 - shadow
50 enable-all: false
51 disable-all: false
52 exclusions:
53 generated: lax
54 presets:
55 - comments
56 - common-false-positives
57 - legacy
58 - std-error-handling
59 paths:
60 - third_party$
61 - builtin$
62 - examples$
63 formatters:
64 settings:
65 golines:
66 max-len: 160
67 enable:
68 - gci
69 - gofmt
70 - gofumpt
71 - goimports
72 - golines
73 exclusions:
74 generated: lax
75 paths:
76 - third_party$
77 - builtin$
78 - examples$
79