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 @@ -21,6 +21,7 @@ linters-settings:
21
21
- " statussubresource" # All root objects that have a `status` field should have a status subresource.
22
22
- " nofloats" # Ensure floats are not used.
23
23
- " maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
24
+ - " nobools" # Bools do not evolve over time, should use enums instead.
24
25
25
26
# Per discussion in July 2024, we are keeping phase fields for now.
26
27
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
@@ -30,7 +31,6 @@ linters-settings:
30
31
# Linters below this line are disabled, pending conversation on how and when to enable them.
31
32
# - "commentstart" # Ensure comments start with the serialized version of the field name.
32
33
# - "jsontags" # Ensure every field has a json tag.
33
- # - "nobools" # Bools do not evolve over time, should use enums instead.
34
34
# - "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
35
35
# - "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
36
36
disable :
@@ -78,3 +78,7 @@ issues:
78
78
text : " maxlength"
79
79
linters :
80
80
- kal
81
+ - path : " api/v1alpha1/*|api/v1beta1/*"
82
+ text : " nobools"
83
+ linters :
84
+ - kal
You can’t perform that action at this time.
0 commit comments