-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
102 lines (100 loc) · 1.7 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
run:
timeout: 5m
tests: false
modules-download-mode: readonly
issues:
exclude-dirs:
- vendor
- tools
- 3rdmocks
- e2e
- webconsole
- fs
- mocks
linters-settings:
nakedret:
max-func-lines: 59
misspell:
locale: US
ignore-words:
- hicloud
gofmt:
simplify: false
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
prealloc:
simple: false
range-loops: true
for-loops: true
errcheck:
check-type-assertions: true
gocritic:
disabled-checks:
- captLocal
nilnil:
checked-types:
- ptr
- func
- iface
- map
- chan
asasalint:
exclude:
- Append
- \.Wrapf
use-builtin-exclusions: false
ignore-test: true
usestdlibvars:
http-method: true
http-status-code: true
time-weekday: true
time-month: true
time-layout: true
crypto-hash: true
default-rpc-path: true
os-dev-null: true
sql-isolation-level: true
tls-signature-scheme: true
constant-kind: true
syslog-priority: true
linters:
disable-all: true
enable:
- usestdlibvars
- asasalint
- bodyclose
- nolintlint
- nosprintfhostport
- prealloc
- durationcheck
- errname
- goconst
- gocyclo
- gocognit
- interfacebloat
- makezero
- nilerr
- nilnil
- gofmt
- goimports
- revive
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- exportloopref
- staticcheck
- typecheck
- unconvert
- unparam
- unused
- asciicheck
- nestif
- errcheck
- gocritic