forked from tikv/pd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
54 lines (54 loc) · 1.1 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
run:
timeout: 3m
linters:
enable:
- misspell
- stylecheck
- gocritic
- unparam
- unconvert
- whitespace
- makezero
- gosec
- bodyclose
- testifylint
- gofmt
disable:
- errcheck
linters-settings:
gocritic:
# 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
- G601
testifylint:
enable:
- bool-compare
- compares
- empty
- error-is-as
- error-nil
- expected-actual
- len
- require-error
- suite-dont-use-pkg
- suite-extra-assert-call
disable:
- float-compare
- go-require
gofmt:
# https://golangci-lint.run/usage/linters/#gofmt
# disable for faster check
simplify: false
rewrite-rules:
- pattern: "interface{}"
replacement: "any"