-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
59 lines (54 loc) · 1.19 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:
skip-dirs:
- api/gen
- broker/devices
deadline: 10m
linters-settings:
govet:
# report about shadowed variables
check-shadowing: true
gocritic:
enabled-tags:
- diagnostic
- performance
- style
disabled-tags:
- experimental
- opinionated
disabled-checks:
- unlambda
- ifElseChain
- appendAssign
- hugeParam
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 15
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 16
linters:
enable:
- megacheck
- govet
- revive
- misspell
- depguard
- gofmt
- varcheck
- gosimple
- gocyclo
- gocognit
- gocritic
- tparallel
- unconvert
disable:
- unused
fast: false
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true