-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
70 lines (65 loc) · 1.04 KB
/
.golangci.yaml
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
run:
deadline: 1m
tests: true
skip-dirs-use-default: true
skip-dirs:
- bin$
- \.git$
- misc$
- spec$
- pkg$
- common$
linters-settings:
errcheck:
check-blank: true
govet:
check-shadowing: true
golint:
min-confidence: 0.3
gocyclo:
min-complexity: 20
gocognit:
min-complexity: 30
dupl:
threshold: 200
nakedret:
max-func-lines: 50
funlen:
lines: 80
statements: 50
linters:
disable-all: true
enable:
- bodyclose
- goconst
- gocritic
- gocyclo
- gosimple
- govet
- ineffassign
- nakedret
- prealloc
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- bodyclose
- cyclop
- decorder
- unparam
- wsl
- predeclared
- nilerr
- reassign
fast: false
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude:
- "should have comment"
- "always receives"
- "parameter .* is always"
- "comment on exported .* should be of the form"
output:
format: colored-line-number