-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.golangci.yml
84 lines (84 loc) · 1.73 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
run:
tests: false
timeout: 240s
skip-dirs-use-default: true
skip-dirs:
- ^vendor$
- ^go/pkg/mod/*
- .*_test\.go$
skip-files:
- .*\.pb\.go
- .*_generated\.go
linters-settings:
depguard:
rules:
Rule not allowed packages:
files: [.*]
deny:
- pkg: notexist
desc: notexist is not allowed or blacklisted
govet:
check-shadowing: true
gocyclo:
min-complexity: 15
maligned:
suggest-new: true
goconst:
min-len: 5
min-occurrences: 3
gocritic:
settings:
rangeValCopy:
sizeThreshold: 1024
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- singleCaseSwitch
- hugeParam
- appendCombine
- commentedOutCode
funlen:
lines: 140
statements: 52
linters:
disable-all: true
enable:
- bodyclose
- unused
- dogsled
- dupl
- errcheck
- funlen
- goconst
- gocritic
- gofmt
- gosec
- gosimple
- nakedret
- exportloopref
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- whitespace
- govet
- revive
- depguard
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- linters:
- typecheck
text: unicode/utf8
- linters:
- gosec
text: G306
output:
format: line-number