1
+ version : " 2"
2
+
1
3
run :
2
4
tests : true
3
5
4
6
issues :
5
7
max-same-issues : 0
6
8
7
- linters-settings :
8
- gci :
9
- sections :
10
- - standard
11
- - default
12
- - prefix(github.com/Antonboom/nilnil)
9
+ formatters :
10
+ enable :
11
+ - gci
12
+ - gofumpt
13
+
14
+ settings :
15
+ gci :
16
+ sections :
17
+ - standard # A standard section: captures all standard packages.
18
+ - default # Default section: contains all imports that could not be matched to another section type.
19
+ - prefix(github.com/Antonboom/nilnil)
20
+
21
+ exclusions :
22
+ generated : lax
13
23
14
24
linters :
15
- disable-all : true
25
+ default : none
16
26
enable :
17
27
- asasalint
18
- - bidichk
19
28
- asciicheck
29
+ - bidichk
20
30
- bodyclose
21
31
- copyloopvar
22
32
- dogsled
@@ -28,53 +38,133 @@ linters:
28
38
- exhaustive
29
39
- exptostd
30
40
- forbidigo
31
- - gci
32
41
- gocheckcompilerdirectives
33
42
- goconst
34
43
- gocritic
35
44
- gocyclo
36
45
- godot
37
46
- godox
38
- - gofmt
39
- - gofumpt
40
47
- goheader
41
- - goimports
42
48
- gomoddirectives
43
49
- gomodguard
44
50
- goprintffuncname
45
51
- gosec
46
- - gosimple
47
52
- govet
48
53
- importas
49
54
- ineffassign
50
- - nilnil
51
55
- lll
52
56
- makezero
53
57
- mirror
54
58
- misspell
55
59
- musttag
56
60
- nakedret
61
+ - nestif
57
62
- nilerr
58
63
- nilnesserr
59
- - nestif
64
+ - nilnil
60
65
- noctx
61
66
- nolintlint
67
+ - perfsprint
62
68
- prealloc
63
69
- predeclared
64
70
- reassign
65
71
- revive
66
72
- sqlclosecheck
67
73
- staticcheck
68
- - stylecheck
69
74
- tagliatelle
70
75
- testableexamples
71
76
- thelper
72
77
- tparallel
73
- - typecheck
74
78
- unconvert
75
79
- unparam
76
80
- unused
77
81
- usestdlibvars
78
82
- usetesting
79
83
- wastedassign
80
84
- whitespace
85
+
86
+ exclusions :
87
+ generated : lax
88
+ presets :
89
+ - comments
90
+ - common-false-positives
91
+ - legacy
92
+ - std-error-handling
93
+
94
+ settings :
95
+ gocritic :
96
+ enable-all : true
97
+ disabled-checks :
98
+ - hugeParam
99
+ - paramTypeCombine
100
+ - stringConcatSimplify
101
+ - unnecessaryBlock
102
+ - whyNoLint
103
+ - yodaStyleExpr
104
+
105
+ govet :
106
+ enable-all : true
107
+ disable :
108
+ - fieldalignment
109
+
110
+ revive :
111
+ severity : error
112
+ rules :
113
+ - name : atomic
114
+ - name : blank-imports
115
+ - name : bool-literal-in-expr
116
+ - name : comment-spacings
117
+ - name : confusing-results
118
+ - name : confusing-results
119
+ - name : context-as-argument
120
+ arguments :
121
+ - allowTypesBefore : ' *testing.T'
122
+ - name : context-keys-type
123
+ - name : datarace
124
+ - name : deep-exit
125
+ - name : defer
126
+ - name : dot-imports
127
+ - name : duplicated-imports
128
+ - name : early-return
129
+ - name : empty-block
130
+ - name : empty-lines
131
+ - name : error-naming
132
+ - name : error-return
133
+ - name : error-strings
134
+ - name : errorf
135
+ - name : exported
136
+ - name : get-return
137
+ - name : identical-branches
138
+ - name : if-return
139
+ - name : increment-decrement
140
+ - name : indent-error-flow
141
+ - name : modifies-parameter
142
+ - name : modifies-value-receiver
143
+ - name : range
144
+ - name : range-val-address
145
+ - name : range-val-in-closure
146
+ - name : receiver-naming
147
+ - name : redundant-build-tag
148
+ - name : redefines-builtin-id
149
+ - name : redundant-import-alias
150
+ - name : string-of-int
151
+ - name : superfluous-else
152
+ - name : time-equal
153
+ - name : time-naming
154
+ - name : unconditional-recursion
155
+ - name : unexported-naming
156
+ - name : unexported-return
157
+ - name : unnecessary-stmt
158
+ - name : unhandled-error
159
+ arguments :
160
+ - fmt.Fprint
161
+ - fmt.Printf
162
+ - fmt.Println
163
+ - name : unreachable-code
164
+ - name : unused-parameter
165
+ - name : use-any
166
+ - name : use-errors-new
167
+ - name : useless-break
168
+ - name : var-declaration
169
+ - name : var-naming
170
+ - name : waitgroup-by-value
0 commit comments