-
Notifications
You must be signed in to change notification settings - Fork 3
/
.golangci.yml
59 lines (56 loc) · 1.21 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
run:
tests: false
timeout: 5m
linters-settings:
cyclop:
max-complexity: 20
skip-tests: true
funlen:
lines: 80
gofumpt:
extra-rules: true
linters:
enable-all: true
disable:
- interfacer # deprecated
- scopelint # deprecated
- maligned # deprecated
- golint # deprecated
- nosnakecase # deprecated
- deadcode # deprecated
- structcheck # deprecated
- ifshort # deprecated
- varcheck # deprecated
- exhaustivestruct # deprecated
- depguard
- exhaustive
- exhaustruct
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- goerr113
- gomnd
- gomoddirectives
- ireturn
- musttag
- nlreturn
- nilerr
- nosnakecase
- varnamelen
- wrapcheck
- wsl
issues:
exclude-use-default: false
exclude:
- 'ST1000: at least one file in a package should have a package comment'
- 'package-comments: should have a package comment'
- 'G302: Expect file permissions to be 0600 or less'
- 'G306: Expect WriteFile permissions to be 0600 or les'
exclude-rules:
- path: module/client.go
linters:
- noctx
- path: internal/modules/vendor.go
linters:
- prealloc