forked from RichardKnop/machinery
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
61 lines (59 loc) · 1.18 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
run:
deadline: 210s
linters:
disable-all: true
enable:
- deadcode
- dupl
# - errcheck # TODO: enable later
- gas
- gci
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- unconvert
- unused
- varcheck
linters-settings:
dupl:
# tokens count to trigger issue, 150 by default
threshold: 200 # TODO: try to reduce it
goconst:
min-len: 5
min-occurrences: 5
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 55 # TODO: try to reduce it to 15
gofmt:
simplify: true
goimports:
local-prefixes: github.com/GetStream/machinery
gocritic:
disabled-checks:
- whyNoLint
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
settings:
hugeParam:
sizeThreshold: 364
rangeValCopy:
sizeThreshold: 364
skipTestFuncs: true
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- errcheck # TODO: enable this later - heavy in use for defers