-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.golangci.yml
69 lines (67 loc) · 1.51 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
run:
timeout: 10m
linters:
enable:
- containedctx
- contextcheck
- errchkjson
- durationcheck
- forcetypeassert
- goconst
- makezero
- sloglint
- wastedassign
- bodyclose
- dogsled
- errorlint
- exhaustive
- copyloopvar
- gocognit
- gocritic
- gocyclo
- godot
- gofumpt
- goimports
- gosec
- misspell
- nakedret
- nestif
- nolintlint
- prealloc
- sqlclosecheck
- staticcheck
- stylecheck
- unconvert
- unparam
issues:
max-same-issues: 0
exclude-rules:
- path: '(.+)_test\.go'
linters:
- bodyclose
linters-settings:
errchkjson:
# report warning when checking error when not required
check-error-free-encoding: false
# encoding of struct with no exported fields
report-no-exported: true
sloglint:
# only allow attribute style formatting instead of kv
attr-only: true
# only allow static messages
static-msg: true
# arguments on separate lines required
args-on-sep-lines: true
nolintlint:
# Enable to ensure that nolint directives are all used. Default is true.
allow-unused: false
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
require-specific: true
godot:
# List of regexps for excluding particular comment lines from check.
exclude:
- "@Router"
gosec:
# disable G115 linter due to false positives and issues with the linter
excludes:
- G115