mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-24 11:17:47 +00:00
Merge pull request #137087 from vinayakray19/feature/enable-uniquemarkers-linter
Enable the uniquemarkers linter
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user