generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 101
/
.golangci.yml
64 lines (62 loc) · 1.06 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
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
shadow: 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
issues:
exclude-dirs:
- vendor
- bundle
- hack
- img
run:
timeout: 5m
enable-cache: true