-
Notifications
You must be signed in to change notification settings - Fork 39
/
.golangci.yml
77 lines (74 loc) · 1.24 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
run:
timeout: 5m
build-tags:
- enterprise
linters:
enable:
- asciicheck
- bodyclose
- contextcheck
- dogsled
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
# TODO: enable when we set minimal Go version to 1.23
# - copyloopvar
- gci
- gochecknoinits
- gofmt
- gofumpt
- goimports
- mnd
- gomodguard
- gosec
- gosimple
- govet
- importas
- ineffassign
- lll
- misspell
- nakedret
- nilerr
- nolintlint
- predeclared
- revive
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- wastedassign
issues:
max-same-issues: 0
exclude-rules:
- linters:
- lll
source: "^\t*// "
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/kong)
gomodguard:
blocked:
modules:
- github.com/ghodss/yaml:
recommendations:
- sigs.k8s.io/yaml
- gopkg.in/yaml.v2:
recommendations:
- sigs.k8s.io/yaml
- gopkg.in/yaml.v3:
recommendations:
- sigs.k8s.io/yaml
- github.com/pkg/errors:
recommendations:
- fmt
- errors
- golang.org/x/net/context:
recommendations:
- context