-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
51 lines (49 loc) · 1.13 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
run:
timeout: 5m
linters:
enable:
- bodyclose
- dogsled
- errorlint
- exhaustive
- exportloopref
- gocognit
- gocritic
- gocyclo
- godot
- gofumpt
- goimports
- gosec
- lll
- misspell
- nakedret
- nestif
- nolintlint
- prealloc
- sqlclosecheck
- staticcheck
- stylecheck
- unconvert
- unparam
linters-settings:
lll:
line-length: 140
tab-width: 4
nolintlint:
# Enable to ensure that nolint directives are all used. Default is true.
allow-unused: false
# Disable to ensure that nolint directives don't have a leading space. Default is true.
allow-leading-space: false
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
require-specific: true
nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 7
gocognit:
# Minimal code complexity to report
# Default: 30 (but we recommend 10-20)
min-complexity: 32
godot:
# List of regexps for excluding particular comment lines from check.
exclude:
- "@Router"