diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index b9da628bae1..3a1d5fa1848 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -388,7 +388,7 @@ linters: - "optionalorrequired" # Every field should be marked as `+optional` xor `+required`. # - "requiredfields" # Required fields should only be pointers when required based on the validity of the zero value, they should always have `omitempty`. - "ssatags" # Ensure lists have a listType tag. - # - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. + - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. - "duplicatemarkers" #Prevent identical markers from being present on types and fields - "dependenttags" # Ensure markers dependent on other markers are present. - "nodurations" # Ensure duration types are not used. diff --git a/hack/golangci.yaml b/hack/golangci.yaml index d78fad6d71b..4403a57791a 100644 --- a/hack/golangci.yaml +++ b/hack/golangci.yaml @@ -401,7 +401,7 @@ linters: - "optionalorrequired" # Every field should be marked as `+optional` xor `+required`. # - "requiredfields" # Required fields should only be pointers when required based on the validity of the zero value, they should always have `omitempty`. - "ssatags" # Ensure lists have a listType tag. - # - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. + - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. - "duplicatemarkers" #Prevent identical markers from being present on types and fields - "dependenttags" # Ensure markers dependent on other markers are present. - "nodurations" # Ensure duration types are not used. diff --git a/hack/kube-api-linter/kube-api-linter.yaml b/hack/kube-api-linter/kube-api-linter.yaml index 0819f428457..731a62d2e85 100644 --- a/hack/kube-api-linter/kube-api-linter.yaml +++ b/hack/kube-api-linter/kube-api-linter.yaml @@ -20,7 +20,7 @@ linters: - "optionalorrequired" # Every field should be marked as `+optional` xor `+required`. # - "requiredfields" # Required fields should only be pointers when required based on the validity of the zero value, they should always have `omitempty`. - "ssatags" # Ensure lists have a listType tag. - # - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. + - "uniquemarkers" # Ensure markers are not duplicated across field and type definitions. - "duplicatemarkers" #Prevent identical markers from being present on types and fields - "dependenttags" # Ensure markers dependent on other markers are present. - "nodurations" # Ensure duration types are not used.