generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 32
/
.golangci.yml
63 lines (60 loc) · 1.03 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
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
gofmt:
enabled: true
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
- gofmt
- unused
- cyclop
- scopelint
exclude-rules:
- testpackage
run:
timeout: 5m
enable-cache: true
skip-dirs:
- vendor
- bundle
- hack
- img