forked from shaneutt/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
85 lines (83 loc) · 1.65 KB
/
.golangci.yaml
File metadata and controls
85 lines (83 loc) · 1.65 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
run:
timeout: 5m
skip-dirs:
- pkg/clientset
- config/
- third_party/
build-tags:
- integration_tests
- e2e_tests
linters:
enable:
- asciicheck
- bodyclose
- dogsled
- durationcheck
- errcheck
- errorlint
- exhaustive
- exportloopref
- gci
- gofmt
- goimports
- gomodguard
- gosec
- gosimple
- govet
- importas
- ineffassign
- megacheck
- misspell
- nilerr
- nolintlint
- predeclared
- revive
- staticcheck
- typecheck
- unconvert
- unparam
- unused
- wastedassign
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/kong/gateway-operator)
importas:
no-unaliased: true
alias:
- pkg: k8s.io/api/core/v1
alias: corev1
- pkg: k8s.io/api/apps/v1
alias: appsv1
- pkg: k8s.io/api/admission/v1
alias: admissionv1
- pkg: k8s.io/api/certificates/v1
alias: certificatesv1
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: sigs.k8s.io/gateway-api/apis/(v[\w\d]+)
alias: gateway${1}
- pkg: github.com/kong/gateway-operator/internal/types
alias: gwtypes
revive:
rules:
- name: context-as-argument
# TODO: re-add this rule after https://github.com/golangci/golangci-lint/issues/3280
# is resolved and released.
# arguments:
# - "allowTypesBefore": "*testing.T"
disabled: true
exhaustive:
default-signifies-exhaustive: true
gomodguard:
blocked:
modules:
- github.com/pkg/errors:
recommendations:
- fmt
- errors
issues:
max-same-issues: 0
fix: true