tools: Added go_vet tool for go files.

This commit is contained in:
Andrew Hamilton 2018-04-07 13:43:27 +10:00
parent 0c8f85f571
commit 8c870367df
3 changed files with 10 additions and 3 deletions

View file

@ -789,7 +789,7 @@ TOOLS_FOR_EXTENSIONS = \
(["a", "so"], [nm]),
(IMAGE_EXTENSIONS, [pil, pil_half]),
(["bash", "sh", "dash", "ksh"], [shellcheck]),
(["go"], [gofmt])
(["go"], [gofmt, go_vet])
]

View file

@ -108,4 +108,11 @@ gofmt:
url: golang-go
executables: [gofmt]
command: gofmt
success_status: normal
success_status: normal
go_vet:
dependencies: [golang-go]
url: golang-go
executables: [go]
command: go vet
error_status: normal