-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
44 lines (44 loc) · 1.31 KB
/
.golangci.yaml
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
run:
deadline: 5m
linters:
enable-all: true
disable:
- golint # deprecated
- interfacer # deprecated
- maligned # deprecated
- scopelint # deprecated
- cyclop # duplicate of gocyclo
- rowserrcheck # exclude 'sql' preset
- sqlclosecheck # exclude 'sql' preset
- exhaustivestruct
- gochecknoglobals
- goconst
- godox
- goerr113
- gomnd
- gomoddirectives
- lll
- nlreturn
- prealloc
- wrapcheck
- wsl
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
- errors
- io/ioutil
- sync/atomic
- github.com/pkg/errors
- github.com/stretchr/testify/assert
- gotest.tools/v3
packages-with-error-message:
- errors: "Use github.com/cockroachdb/errors instead."
- io/ioutil: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead."
- sync/atomic: "Use go.uber.org/atomic instead."
- github.com/pkg/errors: "Use github.com/cockroachdb/errors instead."
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead."
- gotest.tools/v3: "Use github.com/stretchr/testify instead."
gci:
local-prefixes: github.com/tohjustin/kube-api-categories