Skip to content

Commit 818fc3b

Browse files
committed
Update KAL config based on review feedback
1 parent ab11d8e commit 818fc3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.golangci-kal.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ linters-settings:
2222
- "jsontags" # Ensure every field has a json tag.
2323
- "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
2424
- "nobools" # Bools do not evolve over time, should use enums instead.
25-
- "nophase" # Phase fields are discouraged by the Kube API conventions, use conditions instead.
25+
# Per discussion in July 2024, we are keeping phase fields for now.
26+
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
27+
# and https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685919394.
28+
# - "nophase" # Phase fields are discouraged by the Kube API conventions, use conditions instead.
2629
- "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
2730
- "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
2831
- "statussubresource" # All root objects that have a `status` field should have a status subresource.
@@ -46,6 +49,7 @@ issues:
4649
- "vendored_openapi\\.go$"
4750
# We don't want to invest time to fix new linter findings in old API types.
4851
- "internal/apis/.*"
52+
- ".*_test.go" # Exclude test files.
4953
max-same-issues: 0
5054
max-issues-per-linter: 0
5155
exclude-rules:

0 commit comments

Comments
 (0)