-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
49 lines (45 loc) · 955 Bytes
/
.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
---
run:
build-tags:
- integration
linters:
disable-all: true
enable:
- misspell
- goimports
- revive
- gofmt
- depguard
- godot
- unused
- bodyclose
issues:
exclude-dirs:
- test/integration/crd
linters-settings:
depguard:
rules:
main:
files:
- $all
- "!$test"
allow:
- $gostd
- k8s.io/apimachinery
- k8s.io/api
- github.com/slok/kubewebhook/v2
- github.com/slok/go-http-metrics
- github.com/sirupsen/logrus
- github.com/bitte-ein-bit/k8s-sizing-webhook
- github.com/prometheus/client_golang/prometheus
- github.com/oklog/run
- github.com/alecthomas/kingpin/v2
tests:
files:
- $test
allow:
- $gostd
- github.com/stretchr/testify
- k8s.io/apimachinery
- k8s.io/api
- github.com/bitte-ein-bit/k8s-sizing-webhook