File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ linters:
1616 enable :
1717 - " commentstart" # Ensure comments start with the serialized version of the field name.
1818 - " conditions" # Ensure conditions have the correct json tags and markers.
19+ - " conflictingmarkers"
1920 - " duplicatemarkers" # Ensure there are no exact duplicate markers. for types and fields.
2021 - " integers" # Ensure only int32 and int64 are used for integers.
2122 - " jsontags" # Ensure every field has a json tag.
@@ -42,6 +43,13 @@ linters:
4243 disable :
4344 - " *" # We will manually enable new linters after understanding the impact. Disable all by default.
4445 lintersConfig :
46+ conflictingmarkers :
47+ conflicts :
48+ - name : " default_vs_required"
49+ sets :
50+ - ["default", "kubebuilder:default"]
51+ - ["required", "kubebuilder:validation:Required", "k8s:required"]
52+ description : " A field with a default value cannot be required"
4553 conditions :
4654 isFirstField : Warn # Require conditions to be the first field in the status struct.
4755 usePatchStrategy : Forbid # Forbid patchStrategy markers on the Conditions field.
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ name: golangci-lint-kube-api-linter
33destination : ./bin
44plugins :
55- module : ' sigs.k8s.io/kube-api-linter'
6- version : v0.0.0-20250723124831-1b29e82a0f55
6+ version : v0.0.0-20250729132427-47bfeef6cd38
You can’t perform that action at this time.
0 commit comments