forked from kubermatic/machine-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
61 lines (59 loc) · 1.74 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
run:
deadline: 20m
build-tags:
- e2e
skip-dirs:
- pkg/client
- pkg/machines
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- deadcode
- depguard
- durationcheck
- errcheck
- errname
- errorlint
- exportloopref
- goconst
- gocyclo
- godot
- gofmt
- gosimple
- govet
- importas
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- nosprintfhostport
- predeclared
- promlinter
- revive
- staticcheck
- structcheck
- tenv
- unconvert
- unused
- varcheck
- wastedassign
- whitespace
disable-all: true
issues:
exclude:
- should have comment or be unexported
- should have comment \\(or a comment on this block\\) or be unexported
- 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
- 'counter\.Set is deprecated: Use NewConstMetric'
- 'eviction\.go:221:4: the surrounding loop is unconditionally terminated'
- "cyclomatic complexity 31 of func `verifyMigrateUID` is high"
- "cyclomatic complexity 31 of func `main` is high"
- 'cyclomatic complexity 34 of func `\(\*provider\)\.getConfig` is high'
- 'cyclomatic complexity 31 of func `\(\*provider\)\.Validate` is high'
- 'cyclomatic complexity 33 of func `\(\*provider\)\.Create` is high'