Skip to content

Commit 5ff3ce3

Browse files
committed
add kube api linter
Signed-off-by: fabian4 <[email protected]>
1 parent 551c604 commit 5ff3ce3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tools/linter/golangci-lint/.golangci-kal.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@ linters:
1717
settings:
1818
linters:
1919
enable:
20-
- "commentstart"
20+
- "conditions"
21+
- "nodurations"
22+
- "nonullable"
23+
- "notimestamp"
24+
- "statusoptional"
25+
disable:
26+
- "*"
27+
lintersConfig:
28+
conditions:
29+
isFirstField: Warn # Require conditions to be the first field in the status struct.
30+
usePatchStrategy: Forbid # Forbid patchStrategy markers on the Conditions field.
31+
useProtobuf: Forbid # We don't use protobuf, so protobuf tags are not required.
2132

2233
exclusions:
2334
generated: strict
2435

2536
issues:
2637
max-same-issues: 0
2738
max-issues-per-linter: 0
28-
exit-code: 0

0 commit comments

Comments
 (0)