forked from kubermatic/kubeone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
33 lines (30 loc) · 1.13 KB
/
.golangci.yml
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
run:
issues-exit-code: 1
skip-dirs:
- hack
- vendor
linters:
enable-all: true
disable:
- interfacer
- dupl
- maligned
- megacheck
- lll
- prealloc
- gochecknoinits
- gochecknoglobals
linters-settings:
govet:
check-shadowing: true
issues:
exclude:
- "type name will be used as kubeone.KubeOneCluster by other packages, and that stutters; consider calling this Cluster"
- "don't use underscores in Go names; func SetDefaults_KubeOneCluster should be SetDefaultsKubeOneCluster"
- "don't use underscores in Go names; func SetDefaults_Hosts should be SetDefaultsHosts"
- "don't use underscores in Go names; func SetDefaults_APIEndpoints should be SetDefaultsAPIEndpoints"
- "don't use underscores in Go names; func SetDefaults_ClusterNetwork should be SetDefaultsClusterNetwork"
- "don't use underscores in Go names; func SetDefaults_Features should be SetDefaultsFeatures"
- "don't use underscores in Go names; func SetDefaults_MachineController should be SetDefaultsMachineController"
- "G101: Potential hardcoded credentials"
- "G106: Use of ssh InsecureIgnoreHostKey should be audited"