-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yaml
55 lines (52 loc) · 1.01 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
45
46
47
48
49
50
51
52
53
54
55
run:
# Default timeout is 1m, up to give more room
timeout: 4m
linters:
enable:
- asciicheck
- unused
- depguard
- gofumpt
- goimports
- importas
- revive
- misspell
- stylecheck
- tparallel
- unconvert
- unparam
- whitespace
linters-settings:
importas:
alias:
- pkg: k8s.io/api/core/v1
alias: corev1
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: k8s.io/apimachinery/pkg/api/errors
alias: apierrors
- pkg: github.com/openshift/api/config/v1
alias: osconfigv1
revive:
rules:
- name: dot-imports
severity: warning
disabled: true
stylecheck:
dot-import-whitelist:
- github.com/onsi/gomega
- github.com/onsi/ginkgo
- github.com/onsi/ginkgo/v2
goimports:
local-prefixes: github.com/redhat-openshift-ecosystem/preflight-trigger
depguard:
rules:
main:
list-mode: lax
files:
- !$test
allow:
- $gostd
output:
formats:
- format: tab