-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
51 lines (49 loc) · 1.53 KB
/
.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
51
# https://golangci-lint.run/usage/linters/
linters:
enable-all: true
disable:
- depguard # unnecessary
- exhaustruct # https://github.com/GaijinEntertainment/go-exhaustruct
- exhaustivestruct # https://github.com/mbilski/exhaustivestruct
- golint # deprecated https://github.com/golang/lint
- gomnd # https://github.com/tommy-muehle/go-mnd
- ifshort # for readability
- interfacer # deprecated https://github.com/mvdan/interfacer
- ireturn # Too many false negatives.
- lll # unnecessary
- maligned # deprecated https://github.com/mdempsky/maligned
- nlreturn # ignore "return with no blank line before"
- nolintlint # unnecessary
- nonamedreturns # unnecessary
- nosnakecase # for environment variable key
- varnamelen # unnecessary
- wsl # ignore "declarations should never be cuddled"
linters-settings:
# varnamelen:
# ignore-decls:
# - l *Logger
# - l *rec.Logger
# - rw http.ResponseWriter
# - w http.ResponseWriter
# - r *http.Request
wrapcheck:
ignoreSigs:
- func errors.New(text string) error
- func fmt.Errorf(format string, a ...any) error
- func github.com/kunitsucom/ccc/pkg/errors.Errorf(format string, a ...interface{}) error
issues:
exclude-rules:
- path: _test\.go
linters:
- containedctx
- cyclop
- dupl
- funlen
- gochecknoglobals
- gocognit
- goconst
- goerr113
- maintidx
- noctx
- varnamelen
- wrapcheck