-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
85 lines (83 loc) · 1.71 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
run:
timeout: 5m
tests: true
modules-download-mode: readonly
linters:
enable-all: true
disable:
- funlen
- nonamedreturns
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
gosimple:
checks: ["all"]
govet:
enable-all: true
settings:
shadow:
strict: true
staticcheck:
checks: ["all"]
decorder:
ignore-underscore-vars: false
disable-dec-order-check: false
disable-init-func-first-check: false
disable-dec-num-check: false
disable-type-dec-num-check: false
disable-const-dec-num-check: false
disable-var-dec-num-check: false
dogsled:
max-blank-identifiers: 1
errchkjson:
report-no-exported: true
gocognit:
min-complexity: 20
gocritic:
enabled-tags:
- diagnostic
- style
- performance
settings:
captLocal:
paramsOnly: false
hugeParam:
sizeThreshold: 40
gofumpt:
extra-rules: true
gomoddirectives:
replace-local: true
gosec:
config:
global:
audit: true
grouper:
const-require-single-const: true
const-require-grouping: true
import-require-single-import: true
import-require-grouping: true
type-require-single-type: true
type-require-grouping: false
var-require-single-var: true
var-require-grouping: false
varnamelen:
check-receiver: true
check-return: true
check-type-param: true
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-chan-recv-ok: true
ignore-names:
- err
whitespace:
multi-if: true
multi-func: true
depguard:
rules:
main:
files:
- "$all"
- "!$test"
allow:
- "$gostd"