-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
56 lines (52 loc) · 1.06 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
linters:
enable-all: true
fast: false
disable:
- prealloc
- wsl
- nlreturn
- wrapcheck
- godox
- varnamelen
- exhaustruct
- ireturn
- depguard
- perfsprint
# Deprecated:
- execinquery
- gomnd
# We run staticcheck separately:
- staticcheck
- stylecheck
linters-settings:
lll:
line-length: 160
issues:
exclude-rules:
# Exclude some linters from tests
- path: _test\.go
linters:
- funlen
- lll
- goconst
- goerr113
- dupl
- paralleltest
- gocognit
- cyclop
- forcetypeassert
- ifshort
- thelper
- maintidx
- inamedparam
- err113
- nilnil
- mnd
- text: singleCaseSwitch
linters:
- gocritic
# Sometimes even unused parameter names can be helpful for documentation.
# We can reconsider enabling this on a case by case basis in the future.
- text: "unused-parameter: parameter '.*' seems to be unused"
linters:
- revive