-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
47 lines (43 loc) · 970 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
run:
tests: true
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
revive:
rules:
- name: exported
disabled: true
- name: context-as-argument
disabled: false
nolintlint:
require-specific: true
errorlint:
errorf: false
gci:
sections:
- standard
- default
- localmodule
linters:
enable-all: true
disable:
# deprecated linters
- exportloopref
# conflicting/cover same issues
- forcetypeassert # covered by errcheck
# personal preference
- gocritic
- depguard
- funlen
- exhaustruct
- gochecknoglobals
- err113
- nlreturn
- paralleltest
- testpackage
- varnamelen
- wsl
# premature optimisation that creates inconsistent code (sometimes Sprintf, sometimes string concatenation)
# consider enabling _if_ you've profile performance _and_ Sprintf calls are slowing you down
- perfsprint