-
Notifications
You must be signed in to change notification settings - Fork 80
/
.golangci.yml
66 lines (63 loc) · 1.08 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
62
63
64
65
66
linters-settings:
go-mod-tidy:
enabled: true
gci:
enabled: true
max-len: 120
line-length: 120
goconst:
enabled: true
gocritic:
enabled: true
disable:
- parallelize
- nesting
- hugeParam
- hugeStruct
- nestParam
- prealloc
govet:
enabled: true
check-shadowing: true
tests: true
golint:
enabled: true
min-confidence: 0.8
unused:
enabled: true
check-exported: true
check-packages: true
check-generated: true
tests: true
allow-unused-type-export: true
cyclop:
enabled: true
average-strictness: 7
scopelint:
enabled: true
tests: true
# Configuration for golangci-lint that is suitable for a Kubernetes operator project built with Golang
linters:
enable-all: false
disable-all: false
linters:
- gci
- goconst
- gocritic
- govet
- golint
- unused
- cyclop
- scopelint
exclude-rules:
- testpackage
run:
timeout: 5m
enable-cache: true
skip-dirs:
- vendor
- bundle
- config
- hack
- helpers
- img