File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ linters-settings:
19
19
- " conditions" # Ensure conditions have the correct json tags and markers.
20
20
- " integers" # Ensure only int32 and int64 are used for integers.
21
21
- " statussubresource" # All root objects that have a `status` field should have a status subresource.
22
+ - " nobools" # Bools do not evolve over time, should use enums instead.
22
23
23
24
# Per discussion in July 2024, we are keeping phase fields for now.
24
25
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
@@ -29,7 +30,6 @@ linters-settings:
29
30
# - "commentstart" # Ensure comments start with the serialized version of the field name.
30
31
# - "jsontags" # Ensure every field has a json tag.
31
32
# - "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
32
- # - "nobools" # Bools do not evolve over time, should use enums instead.
33
33
# - "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
34
34
# - "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
35
35
disable :
@@ -73,3 +73,7 @@ issues:
73
73
text : " field Prefix should not use an int, int8 or int16. Use int32 or int64 depending on bounding requirements"
74
74
linters :
75
75
- kal
76
+ - path : " api/v1alpha1/*|api/v1beta1/*"
77
+ text : " nobools"
78
+ linters :
79
+ - kal
You can’t perform that action at this time.
0 commit comments