Skip to content

Commit

Permalink
enable nobools linter
Browse files Browse the repository at this point in the history
Signed-off-by: sivchari <[email protected]>
  • Loading branch information
sivchari committed Mar 3, 2025
1 parent 3d41090 commit 85fc87c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .golangci-kal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ linters-settings:
- "integers" # Ensure only int32 and int64 are used for integers.
- "statussubresource" # All root objects that have a `status` field should have a status subresource.
- "nofloats" # Ensure floats are not used.
- "nobools" # Bools do not evolve over time, should use enums instead.

# Per discussion in July 2024, we are keeping phase fields for now.
# See https://github.com/kubernetes-sigs/cluster-api/pull/10897#discussion_r1685929508
Expand All @@ -30,7 +31,6 @@ linters-settings:
# - "commentstart" # Ensure comments start with the serialized version of the field name.
# - "jsontags" # Ensure every field has a json tag.
# - "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
# - "nobools" # Bools do not evolve over time, should use enums instead.
# - "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
# - "requiredfields" # Required fields should not be pointers, and should not have `omitempty`.
disable:
Expand Down Expand Up @@ -74,3 +74,7 @@ issues:
text: "field Prefix should not use an int, int8 or int16. Use int32 or int64 depending on bounding requirements"
linters:
- kal
- path: "api/v1alpha1/*|api/v1beta1/*"
text: "nobools"
linters:
- kal

0 comments on commit 85fc87c

Please sign in to comment.