-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yaml
80 lines (75 loc) · 1.96 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
74
75
76
77
78
79
80
issues:
exclude-files:
- doc\.go$
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- decorder
- dogsled
- errcheck
- errname
- exhaustive
- funlen
- gci
- gocognit
- goconst
- gocritic
- godot
- gosec
- grouper
- interfacebloat
- makezero
- revive
- unconvert
- wsl
linters-settings:
funlen:
lines: -1
statements: 60
grouper:
# Require the use of grouped global 'const' declarations.
# Default: false
const-require-grouping: true
# Require the use of a single 'import' declaration only.
# Default: false
import-require-single-import: true
# Require the use of grouped 'import' declarations.
# Default: false
import-require-grouping: true
# Require the use of grouped global 'type' declarations.
# Default: false
type-require-grouping: true
# Require the use of grouped global 'var' declarations.
# Default: false
var-require-grouping: true
gci:
# Default: ["standard", "default"]
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(go.breu.io/durex) # Custom section: groups all imports with the specified Prefix.
- blank # Blank section: contains all imports that could not be matched to another section type.
# Default: true
skip-generated: false
# Enable custom order of sections.
# If `true`, make the section order the same as the order of `sections`.
# Default: false
custom-order: true
dogsled:
# Checks assignments with too many blank identifiers.
# Default: 2
max-blank-identifiers: 3
interfacebloat:
max: 15
revive:
confidence: 0.8
rules:
- name: line-length-limit
severity: warning
arguments:
- 140
- name: use-any
severity: warning