Skip to content

Commit 70d9d4e

Browse files
authored
Merge pull request #12229 from sivchari/enable-statusoptional-linter
🌱 Enable statusoptional linter
2 parents e19b605 + 1a4ea45 commit 70d9d4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.golangci-kal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linters:
2424
- "nofloats" # Ensure floats are not used.
2525
- "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
2626
- "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
27+
- "statusoptional" # Ensure all first children within status should be optional.
2728
- "statussubresource" # All root objects that have a `status` field should have a status subresource.
2829

2930
# Per discussion in July 2024, we are keeping phase fields for now.

0 commit comments

Comments
 (0)