Skip to content

Commit 070a71a

Browse files
committed
enable nobools linter
Signed-off-by: sivchari <[email protected]>
1 parent d23093a commit 070a71a

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
@@ -18,6 +18,7 @@ linters-settings:
1818
enable:
1919
- "conditions" # Ensure conditions have the correct json tags and markers.
2020
- "integers" # Ensure only int32 and int64 are used for integers.
21+
- "nobools" # Bools do not evolve over time, should use enums instead.
2122

2223
# Per discussion in July 2024, we are keeping phase fields for now.
2324
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
@@ -28,7 +29,6 @@ linters-settings:
2829
# - "commentstart" # Ensure comments start with the serialized version of the field name.
2930
# - "jsontags" # Ensure every field has a json tag.
3031
# - "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
31-
# - "nobools" # Bools do not evolve over time, should use enums instead.
3232
# - "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
3333
# - "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
3434
# - "statussubresource" # All root objects that have a `status` field should have a status subresource.
@@ -73,3 +73,7 @@ issues:
7373
text: "field Prefix should not use an int, int8 or int16. Use int32 or int64 depending on bounding requirements"
7474
linters:
7575
- kal
76+
- path: "api/v1alpha1/*|api/v1beta1/*"
77+
text: "nobools"
78+
linters:
79+
- kal

0 commit comments

Comments
 (0)