-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
48 lines (48 loc) · 1.21 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
run:
concurrency: 4
timeout: 5m
issues-exit-code: 1
modules-download-mode: readonly
tests: true
skip-cache: true
linters:
disable-all: true
enable:
# - depguard
- dogsled
- dupl
- errcheck
- exhaustive
- gochecknoinits
- goconst
- gocyclo
- gofmt
- goprintffuncname
# - gosec
- gosimple
- ineffassign
- misspell
- nakedret
- nolintlint
- staticcheck
# - revive
- unconvert
- unparam
- whitespace
- asciicheck
linters-settings:
dupl:
threshold: 1000
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
goimports:
local-prefixes: github.com/golangci/golangci-lint
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 25