-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yml
88 lines (87 loc) · 1.58 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
run:
tests: true
timeout: 1m
skip-dirs: []
skip-files: []
linters:
enable-all: true
disable:
- depguard
- exhaustivestruct
- exhaustruct
- gci
- gochecknoglobals
- gochecknoinits
- gocyclo
- godox
- goerr113
- gofumpt
- golint
- gomnd
- ifshort
- interfacer
- ireturn
- maligned
- nlreturn
- nonamedreturns
- nosnakecase
- scopelint
- unparam
- unused
- varnamelen
linters-settings:
cyclop:
max-complexity: 10
package-average: 10.0
skip-tests: true
errcheck:
check-type-assertions: true
check-blank: true
gocognit:
min-complexity: 10
gocyclo:
min-complexity: 10
govet:
check-shadowing: true
lll:
line-length: 79
misspell:
locale: US
nestif:
min-complexity: 3
wsl:
strict-append: true
allow-assign-and-call: false
allow-assign-and-anything: false
allow-multiline-assign: false
allow-separated-leading-comment: false
allow-cuddle-declarations: true
allow-case-trailing-whitespace: false
allow-trailing-comment: true
force-err-cuddling: false
force-short-decl-cuddling: false
issues:
exclude-rules:
- source: "^//"
linters:
- lll
- path: "^cmd/"
linters:
- funlen
- wrapcheck
- path: "^pkg/cmd/"
linters:
- funlen
- wrapcheck
- path: "_test\\.go"
linters:
- cyclop
- dupl
- dupword
- gocognit
- goconst
- forbidigo
- funlen
- lll
- testpackage
- wrapcheck