-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
109 lines (96 loc) · 2.16 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
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
run:
concurrency: 4
deadline: 5m
issues-exit-code: 1
tests: true
skip-dirs:
- vendor
modules-download-mode: readonly
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
linters-settings:
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: true
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: false
# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*
govet:
check-shadowing: true
golint:
min-confidence: 0.8
gofmt:
simplify: true
goimports:
local-prefixes: github.com/Decentr-net
gocyclo:
min-complexity: 15
goconst:
min-len: 3
min-occurrences: 3
depguard:
list-type: blacklist
include-go-root: false
misspell:
locale: US
lll:
line-length: 150
tab-width: 4
unused:
check-exported: false
unparam:
check-exported: false
nakedret:
max-func-lines: 1
prealloc:
simple: true
range-loops: true
for-loops: false
gocritic:
disabled-checks:
enabled-tags:
- performance
- diagnostic
settings:
captLocal:
paramsOnly: true
rangeValCopy:
sizeThreshold: 32
linters:
enable-all: true
fast: false
disable:
- wsl
- gomnd
- funlen
- gofumpt
- testpackage
- goerr113
issues:
exclude-rules:
- path: _test\.go
linters:
- gochecknoglobals
- path: _mock\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
- maligned
- gochecknoglobals
- typecheck
- linters:
- gochecknoglobals
text: "`defaultFetchBlockOptions` is a global variable"
exclude-use-default: false
max-per-linter: 0
max-same-issues: 0
new: false