forked from prometheus-operator/prometheus-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
47 lines (44 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
run:
deadline: 10m
linters:
enable:
- revive
- gci
- depguard
issues:
exclude-rules:
- path: _test.go
linters:
- errcheck
# TODO: fix linter errors before enabling it for the framework
- path: test/framework
linters:
- revive
linters-settings:
errcheck:
exclude: scripts/errcheck_excludes.txt
gci:
sections:
- standard
- default
- prefix(github.com/prometheus-operator/prometheus-operator)
depguard:
rules:
forbid-pkg-errors:
files:
- "**/admission/*.go"
- "**/alertmanager/*.go"
- "**/alertmanager/**/*.go"
- "**/apis/*.go"
- "**/apis/**/*.go"
- "**/assets/*.go"
- "**/client/*.go"
- "**/client/**/*.go"
- "**/informers/*.go"
- "**/k8sutil/*.go"
- "**/listwatch/*.go"
- "**/namespacelabeler/*.go"
- "**/operator/*.go"
deny:
- pkg: "github.com/pkg/errors"
dsc: Should be replaced with standard lib errors or fmt.Errorf