Skip to content

Commit 636ec89

Browse files
committed
Add config for uniquemarkers
1 parent f62903b commit 636ec89

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.golangci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ linters:
2929
# Discoverability is for configuration APIs, generally singletons.
3030
# Refer to the API conventions for when to use discoverability (not our default stance).
3131
policy: Ignore
32+
uniqueMarkers:
33+
customMarkers:
34+
- identifier: "openshift:validation:FeatureGateAwareEnum"
35+
attributes:
36+
- featureGate
37+
- requiredFeatureGate
38+
- identifier: "openshift:validation:FeatureGateMaxItems"
39+
attributes:
40+
- featureGate
41+
- requiredFeatureGate
42+
- identifier: "openshift:validation:FeatureGateAwareXValidation"
43+
attributes:
44+
- featureGate
45+
- requiredFeatureGate
46+
- rule
3247
exclusions:
3348
generated: lax
3449
presets:

0 commit comments

Comments
 (0)