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

@ -42,4 +42,4 @@ Extensions | Tools
.a .so | [nm](https://linux.die.net/man/1/nm) .a .so | [nm](https://linux.die.net/man/1/nm)
.png .jpg .gif .bmp .ppm .tiff .tga | [pil](http://python-pillow.github.io/) • [pil_half](http://python-pillow.github.io/) .png .jpg .gif .bmp .ppm .tiff .tga | [pil](http://python-pillow.github.io/) • [pil_half](http://python-pillow.github.io/)
.bash .sh .dash .ksh | [shellcheck](http://hackage.haskell.org/package/ShellCheck) .bash .sh .dash .ksh | [shellcheck](http://hackage.haskell.org/package/ShellCheck)
.go | [gofmt](https://golang.org) .go | [gofmt](https://golang.org) • [go_vet](https://golang.org)

View file

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

View file

@ -108,4 +108,11 @@ gofmt:
url: golang-go url: golang-go
executables: [gofmt] executables: [gofmt]
command: 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