-
Notifications
You must be signed in to change notification settings - Fork 131
/
.golangci.yml
62 lines (59 loc) · 1.64 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
run:
timeout: 20m
build-tags:
- e2e
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- depguard
- durationcheck
- errcheck
- errname
- errorlint
- goconst
- gocyclo
- godot
- gofmt
- gosimple
- govet
- importas
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- nosprintfhostport
- predeclared
- promlinter
- revive
- staticcheck
- tenv
- unconvert
- unused
- wastedassign
- whitespace
disable-all: true
linters-settings:
depguard:
rules:
main:
deny:
- { pkg: io/ioutil, desc: https://go.dev/doc/go1.16#ioutil }
- { pkg: github.com/ghodss/yaml, desc: use sigs.k8s.io/yaml instead }
govet:
enable:
- nilness # find tautologies / impossible conditions
issues:
exclude:
- func Convert_MachinesV1alpha1Machine_To_ClusterV1alpha1Machine should be ConvertMachinesV1alpha1MachineToClusterV1alpha1Machine
- func Convert_MachineDeployment_ProviderConfig_To_ProviderSpec should be ConvertMachineDeploymentProviderConfigToProviderSpec
- func Convert_MachineSet_ProviderConfig_To_ProviderSpec should be ConvertMachineSetProviderConfigToProviderSpec
- func Convert_Machine_ProviderConfig_To_ProviderSpec should be ConvertMachineProviderConfigToProviderSpec
- 'cyclomatic complexity [0-9]+ of func `\(\*provider\)\.Create` is high'
- 'cyclomatic complexity [0-9]+ of func `\(\*provider\)\.Validate` is high'
- 'cyclomatic complexity [0-9]+ of func `\(\*provider\)\.getConfig` is high'
- "SA1019: s.server.IPv6 is deprecated"
exclude-dirs:
- pkg/machines