-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy path.golangci.yml
More file actions
41 lines (39 loc) · 837 Bytes
/
.golangci.yml
File metadata and controls
41 lines (39 loc) · 837 Bytes
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
version: "2"
linters:
default: none
enable:
- staticcheck
settings:
staticcheck:
checks:
- "S*"
depguard:
rules:
main:
files:
- $all
- "!$test"
allow:
- $gostd
- k8s.io
- sigs.k8s.io
- github.com
exclusions:
generated: lax
presets:
- comments
- std-error-handling
- common-false-positives
- legacy
rules:
# unused-parameter is a new revive rule not present in v1's bundled revive.
- linters:
- revive
text: "^unused-parameter:"
# var-naming package name checks are new in v2's revive (v1 only checked variable names).
- linters:
- revive
text: "^var-naming: avoid"
formatters:
enable:
- gofmt