Skip to content

Commit fcbaed5

Browse files
committed
enable requiredfields linter
Signed-off-by: sivchari <[email protected]>
1 parent d724d5e commit fcbaed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci-kal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters-settings:
1919
- "conditions" # Ensure conditions have the correct json tags and markers.
2020
- "integers" # Ensure only int32 and int64 are used for integers.
2121
- "statussubresource" # All root objects that have a `status` field should have a status subresource.
22+
- "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
2223

2324
# Per discussion in July 2024, we are keeping phase fields for now.
2425
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
@@ -31,7 +32,6 @@ linters-settings:
3132
# - "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
3233
# - "nobools" # Bools do not evolve over time, should use enums instead.
3334
# - "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
34-
# - "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
3535
disable:
3636
- "*" # We will manually enable new linters after understanding the impact. Disable all by default.
3737
lintersConfig:

0 commit comments

Comments
 (0)