-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
61 lines (60 loc) · 1.11 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
run:
tests: true
timeout: 1m
skip-dirs: []
skip-files: []
linters:
enable-all: true
disable:
- depguard
- exhaustivestruct
- gochecknoglobals
- gochecknoinits
- gofumpt
- gomnd
- ifshort
- nlreturn
- unparam
- unused
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
gocognit:
min-complexity: 10
gocyclo:
min-complexity: 10
golint:
min-confidence: 0
govet:
check-shadowing: true
lll:
line-length: 79
maligned:
suggest-new: true
misspell:
locale: US
nestif:
min-complexity: 3
wsl:
strict-append: true
allow-assign-and-call: true
allow-assign-and-anything: false
allow-multiline-assign: false
force-case-trailing-whitespace: 0
allow-cuddle-declarations: false
allow-case-trailing-whitespace: true
allow-trailing-comment: false
enforce-err-cuddling: true
issues:
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- gocognit
- goerr113
- forbidigo
- funlen
- lll
- testpackage
- wrapcheck