Skip to content

Commit 5835849

Browse files
committed
Disable newexpr for now
1 parent d04eb9d commit 5835849

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vertical-pod-autoscaler/.golangci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ linters:
1515
disable:
1616
# Disabling omitzero linter as it catches issues with API types, which would be best if kube-api-lint can handle
1717
- omitzero
18+
# simplify code by using go1.26's new(expr)
19+
# should only be updated in old code where it really matters (= always disable in base)
20+
# and needs to remain disabled as until Go 1.26 is also available for backported code (https://github.com/kubernetes/kubernetes/issues/137595)
21+
- newexpr
1822

1923
importas:
2024
alias:
@@ -76,7 +80,7 @@ linters:
7680
# Discourages boolean parameters; disabled since it is mostly been followed across to take boolean values as func params.
7781
- name: flag-parameter
7882
disabled: true
79-
83+
8084
# Limits number of exported structs; disabled because API/codegen packages expose many types by design.
8185
- name: max-public-structs
8286
disabled: true

0 commit comments

Comments
 (0)