forked from kubernetes-sigs/kube-api-linter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.go
More file actions
34 lines (29 loc) · 1.14 KB
/
doc.go
File metadata and controls
34 lines (29 loc) · 1.14 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
/*
KAL is a linter for Kubernetes API types, that implements API conventions and best practices.
This package provides a GolangCI-Lint plugin that can be used to build a custom linter for Kubernetes API types.
The custom golangci-lint binary can be built by checking out the KAL repository and running `make build-golangci`.
This will generate a custom golangci-lint binary in the `bin` directory.
The custom golangci-lint binary can be run with the `run` command, and the KAL linters can be enabled by setting the `kal` linter in the `.golangci.yml` configuration file.
Example `.golangci.yml` configuration file:
linters-settings:
custom:
kal:
type: "module"
description: KAL is the Kube-API-Linter and lints Kube like APIs based on API conventions and best practices.
settings:
linters:
enabled: []
disabled: []
lintersConfig:
jsonTags:
jsonTagRegex: ""
optionalOrRequired:
preferredOptionalMarker: ""
preferredRequiredMarker: ""
linters:
disable-all: true
enable:
- kal
New linters can be added in the [github.com/JoelSpeed/kal/pkg/analysis] package.
*/
package kal