-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy path.golangci.yml
More file actions
49 lines (49 loc) · 1.29 KB
/
.golangci.yml
File metadata and controls
49 lines (49 loc) · 1.29 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
version: "2"
run:
timeout: 13m
linters:
default: none
# TODO: we should be enabling far more linters ...
enable:
- govet
- unused
- misspell
- ineffassign
- staticcheck
settings:
dupl:
threshold: 100
gocyclo:
min-complexity: 50
govet:
enable:
- nilness
staticcheck:
checks:
- all
# disable: could remove embedded field "field" from selector
# explicit selectors can be clearer
- '-QF1008'
# TODO: re-enable. We have a lot of packages without comments and the
# diff to upgrade go is already huge
- '-ST1000'
# We have a lot of legacy capitalized error strings that are really user
# Facing log messages
- '-ST1005'
exclusions:
paths:
- .git
- .tool
- vendor
- verify
rules:
- linters:
- golint
text: ".*should not use dot dot imports"
- linters:
- staticcheck
text: "SA1019: fakectrlruntimeclient.NewFakeClient is deprecated"
- linters:
- staticcheck
# TODO: Is this really supposed to be deprecated? Ref https://github.com/kubernetes/test-infra/issues/14875
text: "SA1019: t.*.TrustedOrg is deprecated: TrustedOrg functionality is deprecated and will be removed in January 2020"