We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d92bcbf + c1aaf51 commit a843bddCopy full SHA for a843bdd
Taskfile.yml
@@ -61,7 +61,9 @@ tasks:
61
desc: Lint Go code
62
cmds:
63
- go vet {{ default .DEFAULT_PACKAGES .PACKAGES }}
64
- - "'{{.GOLINTBIN}}' {{.GOLINTFLAGS}} {{ default .DEFAULT_TARGETS .TARGETS }}"
+ - |
65
+ GOLINT_PATH="$(go list -f '{{"{{"}}.Target{{"}}"}}' golang.org/x/lint/golint || echo "false")"
66
+ "$GOLINT_PATH" {{.GOLINTFLAGS}} "{{ default .DEFAULT_TARGETS .TARGETS }}"
67
68
go:check-formatting:
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"
185
- GOLINTBIN:
- sh: go list -f {{"{{"}}".Target{{"}}"}}" golang.org/x/lint/golint
186
GOLINTFLAGS: "-min_confidence 0.8 -set_exit_status"
187
188
PRETTIER: [email protected]
0 commit comments