-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
50 lines (42 loc) · 994 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
48
49
50
# schema: https://golangci-lint.run/jsonschema/golangci.jsonschema.json
issues:
exclude-rules:
- path: cmd/
linters:
- gochecknoglobals
- gochecknoinits
linters:
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
- sql
- style
- test
- unused
disable:
- depguard # enforces dependency allow list; not using allow list
# annoying/bad
- err113 # disallows returning one-off errors; annoying
- gofumpt # different code formatter; bad
- nlreturn # requires blank line before return; annoying
- varnamelen # limits variable name length; too many false positives
- wsl # whitespace/cuddle rules; tedious
linters-settings:
cyclop:
max-complexity: 30
exhaustruct:
exclude:
- "^github.com/spf13/cobra.Command$"
funlen:
lines: 100
ignore-comments: true
mnd:
ignored-functions:
- strings.SplitN