forked from tikv/pd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
34 lines (34 loc) · 902 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
run:
timeout: 3m
linters:
enable:
- misspell
- stylecheck
- gocritic
- unparam
- unconvert
- whitespace
- makezero
- gosec
- bodyclose
disable:
- errcheck
linters-settings:
gocritic:
# Which checks should be enabled; can't be combined with 'disabled-checks';
# See https://go-critic.github.io/overview#checks-overview
# To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run`
# By default list of stable checks is used.
enabled-checks:
# Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty
disabled-checks:
- regexpMust
- appendAssign
- exitAfterDefer
- ifElseChain
gosec:
# To specify a set of rules to explicitly exclude.
# Available rules: https://github.com/securego/gosec#available-rules
excludes:
- G402
- G404