-
Notifications
You must be signed in to change notification settings - Fork 20
/
.golangci.yaml
54 lines (51 loc) · 1.17 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
run:
# Default timeout is 1m, up to give more room
timeout: 4m
linters:
enable:
- asciicheck
- deadcode
- depguard
- errorlint
- gofmt
- goimports
- importas
- prealloc
- nestif
- 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: configv1
- pkg: github.com/operator-framework/api/pkg/operators/v1alpha1
alias: operatorsv1alpha1
- pkg: github.com/openshift/api/platform/v1alpha1
alias: platformv1alpha1
- pkg: github.com/openshift/platform-operators/api/v1alpha1
alias: platformtypes
revive:
rules:
- name: dot-imports
severity: warning
disabled: true
stylecheck:
dot-import-whitelist:
- github.com/onsi/gomega
- github.com/onsi/ginkgo
goimports:
local-prefixes: github.com/openshift/platform-operators,github.com/openshift/api/platform/v1alpha1
output:
format: tab