-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolangci.yml
81 lines (76 loc) · 1.53 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
run:
timeout: 1m
issues-exit-code: 1
tests: true
# Skip vendor, third_party, testdata, examples, Godeps, builtin
skip-dirs-use-default: true
modules-download-mode: vendor
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
linters-settings:
dogsled:
max-blank-identifiers: 2
dupl:
threshold: 150
errcheck:
check-type-assertions: true
check-blank: false
exhaustive:
default-signifies-exhaustive: false
funlen:
lines: 60
statements: 40
gocognit:
min-complexity: 10
nestif:
min-complexity: 4
goconst:
min-len: 3
min-occurrences: 3
gocyclo:
min-complexity: 10
godot:
check-all: false
gofmt:
simplify: true
golint:
min-confidence: 0.8
gomnd:
settings:
mnd:
checks: argument,case,condition,operation,return,assign
govet:
check-shadowing: true
enable-all: false
enable:
- bools
- assign
- buildtag
- composites
- copylock
- lostcancel
- nilfunc
- printf
- structtag
- tests
- unmarshal
- unreachable
nakedret:
max-func-lines: 30
wsl:
strict-append: true
allow-assign-and-call: true
allow-multiline-assign: true
allow-cuddle-declarations: false
allow-trailing-comment: false
force-case-trailing-whitespace: 0
force-err-cuddling: false
allow-separated-leading-comment: false
issues:
max-issues-per-linter: 0
max-same-issues: 0
severity:
default-severity: error