-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
80 lines (76 loc) · 1.35 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
run:
concurrency: 8
deadline: 5m
issues-exit-code: 1
tests: true
# skip-dirs:
skip-files:
- ".*\\.pb\\.go"
- ".*(.|_)gen\\.go"
modules-download-mode: vendor
linters-settings:
depguard:
list-type: blacklist
include-go-root: false
packages:
- github.com/davecgh/go-spew/spew
errcheck:
check-type-assertions: true
check-blank: true
# exclude: .errcheckignore
goconst:
min-len: 3
min-occurrences: 3
gofmt:
simplify: true
goimports:
# local-prefixes: github.com/
golint:
min-confidence: 0.3
govet:
check-shadowing: false
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
settings:
captLocal:
paramsOnly: true
rangeValCopy:
sizeThreshold: 32
maligned:
suggest-new: true
misspell:
locale: US
nakedret:
max-func-lines: 30
prealloc:
simple: true
range-loops: true
for-loops: false
unparam:
algo: cha
check-exported: true
unused:
check-exported: true
linters:
enable:
enable-all: true
disable:
- dupl
- gochecknoglobals
- gochecknoinits
- gocyclo
- gosec
- lll
- megacheck
- typecheck
fast: true
issues:
exclude-use-default: false
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true