File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 61
61
desc : Lint Go code
62
62
cmds :
63
63
- go vet {{ default .DEFAULT_PACKAGES .PACKAGES }}
64
- - " '{{.GOLINTBIN}}' {{.GOLINTFLAGS}} {{ default .DEFAULT_TARGETS .TARGETS }}"
64
+ - |
65
+ GOLINT_PATH="$(go list -f '{{"{{"}}.Target{{"}}"}}' golang.org/x/lint/golint || echo "false")"
66
+ "$GOLINT_PATH" {{.GOLINTFLAGS}} "{{ default .DEFAULT_TARGETS .TARGETS }}"
65
67
66
68
go:check-formatting :
67
69
desc : Check Go code formatting
@@ -181,8 +183,6 @@ vars:
181
183
sh : echo '`go list -f '{{"{{"}}.Dir{{"}}"}}' ./...`'
182
184
GOFLAGS : " -timeout 10m -v -coverpkg=./... -covermode=atomic"
183
185
184
- GOLINTBIN :
185
- sh : go list -f {{"{{"}}".Target{{"}}"}}" golang.org/x/lint/golint
186
186
GOLINTFLAGS : " -min_confidence 0.8 -set_exit_status"
187
187
188
188
You can’t perform that action at this time.
0 commit comments