-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.golangci.yml
62 lines (60 loc) · 1017 Bytes
/
.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
linters:
fast: false
enable:
- errcheck
- errorlint
- gas
- gocritic
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- megacheck
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- unconvert
- unparam
disable:
- unused
linters-settings:
revive:
enable-all-rules: true
rules:
- name: var-naming
arguments:
- ["ID"]
- name: add-constant
disabled: true
- name: line-length-limit
arguments:
- 140
gocritic:
enabled-tags:
- performance
- diagnostic
- style
- opinionated
- experimental
disabled-checks:
- singleCaseSwitch
- deferInLoop
- hugeParam
- unnamedResult
issues:
exclude-rules:
- linters:
- revive
text: ALL_CAPS
exclude-dirs:
- chain
- exchange
- injective_data
- proto
- client/keyring/testdata
max-issues-per-linter: 0
run:
tests: false