-
Notifications
You must be signed in to change notification settings - Fork 15
/
.golangci.yml
51 lines (47 loc) · 939 Bytes
/
.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
run:
deadline: 10m
linters:
enable:
- errcheck
- gocritic
- goimports
- govet
- megacheck
- revive
disable-all: true
linters-settings:
# Enable-checks are based on the gocritic check list tagged as "stable" check here:
# https://github.com/go-critic/go-critic/blob/e92184cb98471e662585b9b49e9b133cab72e20a/checkers/checkers_test.go#L63
gocritic:
enabled-checks:
- appendAssign
- appendCombine
- assignOp
- builtinShadow
- captLocal
- caseOrder
- defaultCaseOrder
- dupArg
- dupBranchBody
- dupCase
- elseif
- flagDeref
- ifElseChain
- importShadow
- indexAlloc
- paramTypeCombine
- rangeExprCopy
- rangeValCopy
- regexpMust
- singleCaseSwitch
- sloppyLen
- switchTrue
- typeSwitchVar
- typeUnparen
- underef
- unlambda
- unslice
- dupSubExpr
- hugeParam
issues:
exclude-use-default: false