Skip to content

Commit 8516e16

Browse files
committed
lint: exclude deprecation warnings for CAPI v1beta1
1 parent c5028c3 commit 8516e16

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.golangci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,15 @@ linters:
306306
- linters:
307307
- goconst
308308
path: (.+)_test\.go
309+
# Ignore Cluster API v1beta1 deprecations.
310+
- linters:
311+
- staticcheck
312+
path: .*\.go$
313+
text: 'SA1019: "sigs.k8s.io/cluster-api/api/.*/v1beta1" is deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.'
314+
- linters:
315+
- staticcheck
316+
path: .*\.go$
317+
text: 'SA1019: "sigs.k8s.io/cluster-api/util/deprecated/.*" is deprecated: This package is deprecated and is going to be removed when support for v1beta1 will be dropped.'
309318
paths:
310319
- zz_generated\.(\w*)\.go$
311320
- third_party$

0 commit comments

Comments
 (0)