generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.golangci-kal.yml
More file actions
37 lines (37 loc) · 1.36 KB
/
.golangci-kal.yml
File metadata and controls
37 lines (37 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "2"
linters:
default: none
enable:
- kubeapilinter
settings:
custom:
kubeapilinter:
type: module
description: Kube API LInter lints Kube like APIs based on API conventions and best practices.
settings:
linters:
enable:
- "duplicatemarkers" # Ensure there are no exact duplicate markers. for types and fields.
- "jsontags" # Ensure every field has a json tag.
- "nofloats" # Ensure floats are not used.
- "nomaps" # Ensure maps are not used.
- "nophase" # Phase fields are discouraged by the Kube API conventions, use conditions instead.
- "optionalorrequired" # Every field should be marked as `+optional` or `+required`.
- "ssatags" # Ensure proper Server-Side Apply (SSA) tags on array fields.
- "statussubresource" # All root objects that have a `status` field should have a status subresource.
- "uniquemarkers" # Ensure that types and fields do not contain more than a single definition of a marker that should only be present once.
disable:
- "*"
lintersConfig: {}
exclusions:
generated: strict
paths:
- conformance/
paths-except:
- api/
issues:
max-issues-per-linter: 0
max-same-issues: 0
run:
timeout: 5m
tests: false