forked from hetznercloud/hcloud-cloud-controller-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
119 lines (109 loc) · 2.2 KB
/
.golangci.yaml
File metadata and controls
119 lines (109 loc) · 2.2 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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "2"
run:
timeout: 5m
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- copyloopvar
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- forbidigo
- gocheckcompilerdirectives
- gochecksumtype
- gocritic
- godot
- gomoddirectives
- gomodguard
- gosec
- gosmopolitan
- govet
- importas
- ineffassign
- loggercheck
- makezero
- misspell
- musttag
- nilerr
- nilnesserr
- noctx
- prealloc
- protogetter
- reassign
- recvcheck
- revive
- rowserrcheck
- spancheck
- staticcheck
- testifylint
- unparam
- unused
- whitespace
settings:
exhaustive:
default-signifies-exhaustive: true
staticcheck:
checks: ["all", "-QF1008"]
gomoddirectives:
replace-allow-list:
- github.com/hetznercloud/hcloud-go/v2
- k8s.io/cloud-provider
- k8s.io/controller-manager
importas:
alias:
- pkg: k8s.io/api/core/v1
alias: corev1
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: github.com/syself/hrobot-go
alias: hrobot
- pkg: github.com/syself/hrobot-go/models
alias: hrobotmodels
no-unaliased: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- std-error-handling
rules:
- linters:
- testifylint
text: require-error
- linters:
- godot
path: internal/annotation/load_balancer.go
- linters:
- godot
path: internal/config/load_balancer_envs.go
- linters:
- errcheck
- gosec
path: (_test\.go|testing\.go|testsupport|e2etests)
- linters:
- revive
- unparam
path: internal/mocks
- linters:
- revive
path: internal/utils/.+\.go
text: var-naming
formatters:
enable:
- gci
- goimports
settings:
gci:
sections:
- standard
- default
- prefix(github.com/hetznercloud)
exclusions:
generated: lax