-
Notifications
You must be signed in to change notification settings - Fork 3
/
.golangci.yml
51 lines (48 loc) · 1.01 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
run:
deadline: 10m
linters:
disable-all: true
enable:
- gosimple
- typecheck
- unused
- depguard
- unconvert
issues:
exclude-rules:
# Disable errcheck linter for test files.
- path: _test.go
linters:
- errcheck
linters-settings:
testifylint:
disable:
- require-error
- expected-actual
enable:
- bool-compare
- compares
- empty
- error-is-as
- error-nil
- float-compare
- len
- suite-dont-use-pkg
- suite-extra-assert-call
- suite-thelper
errcheck:
exclude: scripts/errcheck_excludes.txt
gci:
sections:
- standard
- default
depguard:
rules:
forbid-pkg-errors:
deny:
- pkg: "github.com/pkg/errors"
dsc: Should be replaced with standard lib errors or fmt.Errorf
- pkg: "io/ioutil"
desc: Use corresponding 'os' or 'io' functions instead.
- pkg: "github.com/pkg/errors"
desc: Use 'errors' or 'fmt' instead of github.com/pkg/errors