Skip to content

Commit 2604e41

Browse files
committed
Bump KAL add nonullable and forbiddenmarkers linter
Signed-off-by: Stefan Büringer [email protected]
1 parent 4429cb3 commit 2604e41

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.golangci-kal.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ linters:
1818
- "conditions" # Ensure conditions have the correct json tags and markers.
1919
- "conflictingmarkers"
2020
- "duplicatemarkers" # Ensure there are no exact duplicate markers. for types and fields.
21+
#- "forbiddenmarkers" # Ensure that types and fields do not contain any markers that are forbidden.
2122
- "integers" # Ensure only int32 and int64 are used for integers.
2223
- "jsontags" # Ensure every field has a json tag.
2324
- "maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
2425
- "nobools" # Bools do not evolve over time, should use enums instead.
2526
- "nofloats" # Ensure floats are not used.
2627
- "nomaps" # Ensure maps are not used.
28+
- "nonullable" # Ensure that types and fields do not have the nullable marker.
2729
- "notimestamp" # Prevents usage of 'Timestamp' fields
2830
- "optionalfields" # Ensure that all fields marked as optional adhere to being pointers and
2931
# having the `omitempty` value in their `json` tag where appropriate.

hack/tools/.custom-gcl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: golangci-lint-kube-api-linter
33
destination: ./bin
44
plugins:
55
- module: 'sigs.k8s.io/kube-api-linter'
6-
version: v0.0.0-20250819121536-a575e84f4ce8
6+
version: v0.0.0-20250902135116-ef33eac3b92b

0 commit comments

Comments
 (0)