-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.golangci.yaml
69 lines (67 loc) · 1.23 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
66
67
68
69
linters:
enable-all: true
disable:
- depguard
- exhaustruct
- gomnd
- funlen
- ireturn
- err113
- execinquery
- mnd
- exportloopref
issues:
exclude-rules:
- path: _test\.go
linters:
- lll
- gocognit
- cyclop
- wrapcheck
- maintidx
- dogsled
- contextcheck
- dupword
- dupl
- funlen
- gocyclo
linters-settings:
gosec:
excludes:
- G101 # Potential hardcoded credentials
sloglint:
no-mixed-args: true
kv-only: false
attr-only: true
no-global: "all"
context: "scope"
static-msg: false
no-raw-keys: false
key-naming-case: snake
forbidden-keys:
- time
- level
- msg
- source
args-on-sep-lines: true
varnamelen:
ignore-names:
- tt
ignore-decls:
- i int
- a ...any
- err error
- ok bool
- id string
- w http.ResponseWriter
- rt http.RoundTripper
- r *http.Request
- l net.Listener
- t reflect.Type
- wg sync.WaitGroup
- k *koanf.Koanf
- mu sync.Mutex
- ts oauth2.TokenSource
- ca *testcerts.CertificateAuthority
lll:
line-length: 160