-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy path.golangci.yml
More file actions
133 lines (133 loc) · 3.61 KB
/
.golangci.yml
File metadata and controls
133 lines (133 loc) · 3.61 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "2"
linters:
enable:
- bodyclose
- copyloopvar
- depguard
- errorlint
- gocritic
- gosec
- importas
- misspell
- revive
- staticcheck
- testifylint
- unconvert
settings:
gocritic:
enabled-tags:
- performance
depguard:
rules:
Main:
deny:
- pkg: github.com/gogo/protobuf
desc: gogo/protobuf is deprecated, use golang/protobuf
- pkg: gopkg.in/yaml.v2
desc: use sigs.k8s.io/yaml instead
- pkg: gopkg.in/yaml.v3
desc: use sigs.k8s.io/yaml instead
- pkg: k8s.io/utils/pointer
desc: use k8s.io/utils/ptr instead
- pkg: encoding/json
desc: use github.com/envoyproxy/ai-gateway/internal/json instead
- pkg: github.com/bytedance/sonic
desc: use github.com/envoyproxy/ai-gateway/internal/json instead
govet:
disable:
- fieldalignment
enable-all: true
importas:
alias:
- pkg: sigs.k8s.io/gateway-api/apis/v1
alias: gwapiv1
- pkg: sigs.k8s.io/gateway-api/apis/v1alpha2
alias: gwapiv1a2
- pkg: sigs.k8s.io/gateway-api/apis/v1alpha3
alias: gwapiv1a3
- pkg: sigs.k8s.io/gateway-api/apis/v1beta1
alias: gwapiv1b1
- pkg: github.com/envoyproxy/gateway/api/v1alpha1
alias: egv1a1
- pkg: github.com/envoyproxy/ai-gateway/api/v1alpha1
alias: aigv1a1
- pkg: sigs.k8s.io/gateway-api-inference-extension/api/v1
alias: gwaiev1
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
alias: apiextensionsv1
- pkg: sigs.k8s.io/mcs-api/pkg/apis/v1alpha1
alias: mcsapiv1a1
- pkg: k8s.io/api/(\w+)/(v[\w\d]+)
alias: $1$2
- pkg: k8s.io/apimachinery/pkg/api/errors
alias: apierrors
- pkg: github.com/envoyproxy/ai-gateway/internal/testing
alias: internaltesting
- pkg: github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3
alias: clusterv3
- pkg: github.com/envoyproxy/go-control-plane/envoy/config/route/v3
alias: routev3
- pkg: github.com/envoyproxy/gateway/proto/extension
alias: egextension
- pkg: github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3
alias: httpconnectionmanagerv3
no-unaliased: true
no-extra-aliases: false
testifylint:
enable:
- bool-compare
- compares
- empty
- error-is-as
- error-nil
- expected-actual
- len
- require-error
- suite-dont-use-pkg
- suite-extra-assert-call
disable:
- float-compare
- go-require
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- godot
path: api
- linters:
- staticcheck
text: "SA1019:"
- linters:
- bodyclose
path: test/e2e
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gci
- gofumpt
settings:
gci:
sections:
- standard
- default
- prefix(github.com/envoyproxy/ai-gateway)
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
- zz_generated