-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yaml
65 lines (57 loc) · 1.28 KB
/
.golangci.yaml
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
issues:
exclude-rules:
# Test functions tend to be quite long due to the large amount of fixtures & test data etc.
- linters:
- funlen
path: _test\.go
text: "is too long"
# There's no need to wrap errors in a test.
- linters:
- wrapcheck
path: _test\.go
text: "error returned from external package is unwrapped"
# Commonly used in tests, and using sentinel errors for this is overkill.
- linters:
- nilnil
path: _test\.go
text: " use a sentinel error instead"
linters:
enable-all: true
disable:
# tmpfix - currently breaking things
- musttag
- depguard
- exhaustruct
- forcetypeassert
- godox
- gomoddirectives
- gomodguard
- ireturn
# deprecated
- testableexamples
# disabled because of generics
- rowserrcheck
- wastedassign
linters-settings:
gomoddirectives:
replace-local: true
gci:
sections:
- standard
- default
- prefix(github.com/ovotech)
- blank
- dot
skip-generated: true
custom-order: true
revive:
confidence: 0.1
severity: warning
rules:
- name: exported
severity: error
disabled: false
arguments:
- checkPrivateReceivers
run:
timeout: "5m"