forked from xmidt-org/caduceus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
64 lines (53 loc) · 1.37 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
---
linters-settings:
misspell:
locale: US
linters:
enable:
- bodyclose
- dupl
- errorlint
- funlen
- goconst
- gosec
- misspell
- unconvert
- prealloc
disable:
- errcheck
- ineffassign
issues:
exclude-rules:
- path: _test.go
linters:
- dupl
- funlen
- path: main\.go
# Accept TLSClientConfig with InsecureSkipVerify
text: "G402:"
- path: main\.go
# Accept pprof is automatically exposed
text: "G108:"
- path: outboundSender\.go
# Accept sha1 for signature
text: "G505:"
- path: outboundSender\.go
# Acceptable case for the deprecated constant
text: "wrp.MimeTypeWrp is deprecated"
- path: outboundSender\.go
# Accept normal random function for determining a starting node
text: "G404:"
- path: outboundSender\.go
# Ingore the ask to preallocate events
text: "Consider preallocating `events`"
- path: outboundSender\.go
# The linter doesn't figure out that the closure below this code is valid.
source: ".*xhttp.RetryTransactor.*"
text: "response body must be closed"
- path: outboundSender_test\.go
# Accept sha1 for signature
linters:
- goconst
- path: senderWrapper_test\.go
# Ignore unused fn member as it is used
text: "`fn` is unused"