-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
121 lines (121 loc) · 2.16 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
issues:
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013
linters:
disable-all: true
enable:
# - cyclop
- dupl
- err113
- errcheck
- errname
- errorlint
- copyloopvar
- forcetypeassert
- funlen
- goconst
- gocritic
- godot
- gofumpt
- goimports
- gosec
- gosimple
- ineffassign
- interfacebloat
- lll
- makezero
- misspell
# - mnd
- musttag
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- nolintlint
- perfsprint
- prealloc
- predeclared
- reassign
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
# - stylecheck
- tagalign
# - testpackage
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace
- wrapcheck
run:
tests: true
issues-exit-code: 1
output:
formats: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
path-prefix: ""
sort-results: true
linters-settings:
errcheck:
check-type-assertions: true
check-blank: false
exclude: ""
exclude-functions: []
nlreturn:
block-size: 3
goconst:
min-len: 2
min-occurrences: 3
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
enable:
- fieldalignment
nolintlint:
require-explanation: false
require-specific: true
gosec:
excludes:
- G201
- G204
errorlint:
errorf: true
asserts: false
comparison: false
revive:
ignore-generated-header: true
severity: warning
rules:
- name: atomic
- name: unexported-return
- name: errorf
- name: error-return
- name: error-naming
- name: if-return
- name: increment-decrement
- name: range
- name: receiver-naming
- name: empty-block
- name: confusing-naming
- name: unnecessary-stmt
- name: struct-tag
- name: modifies-value-receiver
- name: bool-literal-in-expr
- name: early-return
- name: unexported-naming
- name: nested-structs