File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ linters-settings:
18
18
enable :
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
+ - " jsontags" # Ensure every field has a json tag.
21
22
- " maxlength" # Ensure all strings and arrays have maximum lengths/maximum items.
22
23
- " nobools" # Bools do not evolve over time, should use enums instead.
23
24
- " nofloats" # Ensure floats are not used.
@@ -31,7 +32,6 @@ linters-settings:
31
32
32
33
# Linters below this line are disabled, pending conversation on how and when to enable them.
33
34
# - "commentstart" # Ensure comments start with the serialized version of the field name.
34
- # - "jsontags" # Ensure every field has a json tag.
35
35
# - "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
36
36
disable :
37
37
- " *" # We will manually enable new linters after understanding the impact. Disable all by default.
@@ -82,3 +82,8 @@ issues:
82
82
text : " nobools"
83
83
linters :
84
84
- kal
85
+ # We follow the current CustomResourceDefinition field's json tag pattern.
86
+ - path : " api/v1beta1/*"
87
+ text : " field (XPreserveUnknownFields|XPreserveUnknownFields|XValidations|XMetadata|XIntOrString) json tag does not match pattern"
88
+ linters :
89
+ - kal
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ name: golangci-lint-kal-v1.63.4
3
3
destination : ./bin
4
4
plugins :
5
5
- module : ' github.com/JoelSpeed/kal'
6
- version : v0.0.0-20250208110507-b94e5ede1177
6
+ version : v0.0.0-20250304142607-36e90ff72198
You can’t perform that action at this time.
0 commit comments