-
Notifications
You must be signed in to change notification settings - Fork 9
/
.golangci.yaml
73 lines (72 loc) · 1.8 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
70
71
72
73
run:
timeout: 3m
skip-files: []
skip-dirs: []
linters-settings:
govet:
check-shadowing: false
golint:
min-confidence: 0
gocyclo:
min-complexity: 12
maligned:
suggest-new: true
goconst:
min-len: 3
min-occurrences: 4
misspell:
locale: US
funlen:
lines: 60
statements: 40
ireturn:
# ireturn allows using `allow` and `reject` settings at the same time.
# Both settings are lists of the keywords and regular expressions matched to interface or package names.
# keywords:
# - `empty` for `interface{}`
# - `error` for errors
# - `stdlib` for standard library
# - `anon` for anonymous interfaces
# By default, it allows using errors, empty interfaces, anonymous interfaces,
# and interfaces provided by the standard library.
allow:
- anon
- error
- empty
- stdlib
# You can specify idiomatic endings for interface
- (or|er)$
- github.com/packruler/rewrite-body/logger.LogWriter
linters:
enable-all: true
disable:
- scopelint
- golint
- interfacer
- maligned
- bodyclose
- goerr113
- wrapcheck
- maligned
- exhaustivestruct
- testpackage
- paralleltest
- tparallel
issues:
exclude-use-default: false
max-per-linter: 0
max-same-issues: 0
exclude:
- don't use an underscore in package name
- "ST1003: should not use underscores in package names"
- "SA1019: http.CloseNotifier has been deprecated since Go 1.11 and an alternative has been available since Go 1.7: the CloseNotifier interface predates Go's context package. New code should use Request.Context instead."
exclude-rules:
- path: (.+)_test.go
linters:
- goconst
- funlen
- godot
- lll
- path: config.go
linters:
- lll