-
Notifications
You must be signed in to change notification settings - Fork 12
/
.golangci.yaml
67 lines (63 loc) · 1.63 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
56
57
58
59
60
61
62
63
64
65
66
67
run:
# Default timeout is 1m, up to give more room
timeout: 4m
linters:
enable:
- asciicheck
- gofumpt
- goimports
- importas
- revive
- misspell
- stylecheck
- tparallel
- unconvert
- unparam
- unused
- whitespace
linters-settings:
importas:
alias:
- pkg: k8s.io/api/core/v1
alias: corev1
- pkg: k8s.io/api/rbac/v1
alias: rbacv1
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: k8s.io/apimachinery/pkg/api/errors
alias: apierrors
- pkg: sigs.k8s.io/controller-runtime
alias: ctrl
- pkg: sigs.k8s.io/controller-runtime/pkg/log
alias: logf
- pkg: k8s.io/apimachinery/pkg/util/runtime
alias: utilruntime
- pkg: k8s.io/client-go/kubernetes/scheme
alias: clientgoscheme
- pkg: k8s.io/apimachinery/pkg/util/yaml
alias: yamlutil
- pkg: github.com/operator-framework/api/pkg/operators/v1alpha1
alias: operatorsv1a1
- pkg: github.com/openshift/api/image/v1
alias: imagev1
- pkg: github.com/openshift/api/security/v1
alias: securityv1
- pkg: github.com/tektoncd/pipeline/pkg/apis/pipeline/v1
alias: tekton
- pkg: github.com/redhat-openshift-ecosystem/operator-certification-operator/api/v1alpha1
alias: certv1alpha1
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/operator-certification-operator
output:
formats:
- format: tab