-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.golangci.yaml
More file actions
114 lines (114 loc) · 1.95 KB
/
.golangci.yaml
File metadata and controls
114 lines (114 loc) · 1.95 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "2"
run:
issues-exit-code: 1
tests: false
output:
formats:
text:
path: stdout
print-linter-name: true
print-issued-lines: true
linters:
default: none
enable:
- bodyclose
- dogsled
- dupword
- errcheck
- funlen
- gocognit
- gocritic
- gocyclo
- godot
- goprintffuncname
- gosec
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- predeclared
- promlinter
- staticcheck
- unconvert
- unparam
- unused
- whitespace
settings:
dupl:
threshold: 150
errcheck:
check-type-assertions: false
check-blank: false
funlen:
lines: 110
statements: 60
gocognit:
min-complexity: 30
gocritic:
disabled-checks:
- hugeParam
- importShadow
- ifElseChain
- commentedOutCode
enabled-tags:
- performance
- diagnostic
- style
gocyclo:
min-complexity: 20
lll:
line-length: 140
tab-width: 1
misspell:
locale: US
nakedret:
max-func-lines: 30
nolintlint:
require-explanation: true
require-specific: true
prealloc:
simple: true
range-loops: true
for-loops: true
unparam:
check-exported: false
staticcheck:
checks:
- all
- -ST1005
- -ST1000
- -ST1003
exclusions:
generated: lax
presets:
- common-false-positives
- legacy
- std-error-handling
paths:
- .*\.pb\.go$
- .*\.gen\.go$
- .*_gen\.go$
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
new: false
formatters:
enable:
- gofmt
- goimports
settings:
gofmt:
simplify: true
exclusions:
generated: lax
paths:
- .*\.pb\.go$
- .*\.gen\.go$
- .*_gen\.go$
- third_party$
- builtin$
- examples$