File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ require (
27
27
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4
28
28
github.com/jingyugao/rowserrcheck v0.0.0-20191204022205-72ab7603b68a
29
29
github.com/jirfag/go-printf-func-name v0.0.0-20191110105641-45db9963cdd3
30
- github.com/kyoh86/exportloopref v0.1.4
30
+ github.com/kyoh86/exportloopref v0.1.7
31
31
github.com/maratori/testpackage v1.0.1
32
32
github.com/matoous/godox v0.0.0-20190911065817-5d6d842e92eb // v1.0
33
33
github.com/mattn/go-colorable v0.1.7
@@ -55,7 +55,6 @@ require (
55
55
github.com/ultraware/whitespace v0.0.4
56
56
github.com/uudashr/gocognit v1.0.1
57
57
github.com/valyala/quicktemplate v1.5.0
58
- golang.org/x/mod v0.3.0 // indirect
59
58
golang.org/x/tools v0.0.0-20200710042808-f1c4188a97a1
60
59
gopkg.in/yaml.v2 v2.3.0
61
60
honnef.co/go/tools v0.0.1-2020.1.4
Original file line number Diff line number Diff line change @@ -213,8 +213,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
213
213
github.com/kr/text v0.1.0 /go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI =
214
214
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY =
215
215
github.com/kr/text v0.2.0 /go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE =
216
- github.com/kyoh86/exportloopref v0.1.4 h1:t8QP+vBUykOFp6Bks/ZVYm3+Rp3+aj+AKWpGXgK4anA =
217
- github.com/kyoh86/exportloopref v0.1.4 /go.mod h1:h1rDl2Kdj97+Kwh4gdz3ujE7XHmH51Q0lUiZ1z4NLj8 =
216
+ github.com/kyoh86/exportloopref v0.1.7 h1:u+iHuTbkbTS2D/JP7fCuZDo/t3rBVGo3Hf58Rc+lQVY =
217
+ github.com/kyoh86/exportloopref v0.1.7 /go.mod h1:h1rDl2Kdj97+Kwh4gdz3ujE7XHmH51Q0lUiZ1z4NLj8 =
218
218
github.com/lib/pq v1.0.0 /go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo =
219
219
github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e /go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4 =
220
220
github.com/magiconair/properties v1.8.0 /go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ =
Original file line number Diff line number Diff line change @@ -8,14 +8,12 @@ import (
8
8
)
9
9
10
10
func NewExportLoopRef () * goanalysis.Linter {
11
- analyzers := []* analysis.Analyzer {
12
- exportloopref .Analyzer ,
13
- }
11
+ a := exportloopref .Analyzer
14
12
15
13
return goanalysis .NewLinter (
16
- "exportloopref" ,
17
- "An analyzer that finds exporting pointers for loop variables." ,
18
- analyzers ,
14
+ a . Name ,
15
+ a . Doc ,
16
+ [] * analysis. Analyzer { a } ,
19
17
nil ,
20
- ).WithLoadMode (goanalysis .LoadModeSyntax )
18
+ ).WithLoadMode (goanalysis .LoadModeTypesInfo )
21
19
}
You can’t perform that action at this time.
0 commit comments