-
Notifications
You must be signed in to change notification settings - Fork 431
/
Copy path.golangci.yaml
56 lines (50 loc) · 974 Bytes
/
.golangci.yaml
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
# This file configures checks that all new code for Kubernetes is meant to
# pass, in contrast to .golangci.yaml which defines checks that also the
# existing code passes.
version: "2"
run:
timeout: 30m
linters:
default: all
enable: # please keep this alphabetized
- govet
- ineffassign
- staticcheck
- unused
- gocritic
- asasalint
- copyloopvar
disable:
- errcheck
- cyclop
- depguard
- dupl
- err113
- exhaustruct
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst # TODO: turn this one on
- gocyclo
- gosec # TODO: turn this one on
- lll
- maintidx
- mnd
- musttag
- nestif
- nlreturn
- paralleltest
- perfsprint
- promlinter
- recvcheck
- revive
- tagliatelle
- testpackage
- varnamelen
- wrapcheck
- wsl
settings: # please keep this alphabetized
staticcheck:
checks:
- "all"