tools: Added golint for go files.
This commit is contained in:
parent
8a5b76510b
commit
d3a6a67d27
2 changed files with 8 additions and 2 deletions
|
|
@ -42,5 +42,5 @@ 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_vet](https://golang.org) • [godoc](http://golang.org/x/tools)
|
.go | [gofmt](https://golang.org) • [go_vet](https://golang.org) • [golint](https://github.com/golang/lint) • [godoc](http://golang.org/x/tools)
|
||||||
.yaml | [yamllint](https://github.com/adrienverge/yamllint)
|
.yaml | [yamllint](https://github.com/adrienverge/yamllint)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ tools_for_extensions = [
|
||||||
[["a", "so"], ["nm"]],
|
[["a", "so"], ["nm"]],
|
||||||
[["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"], ["pil", "pil_half"]],
|
[["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"], ["pil", "pil_half"]],
|
||||||
[["bash", "sh", "dash", "ksh"], ["shellcheck"]],
|
[["bash", "sh", "dash", "ksh"], ["shellcheck"]],
|
||||||
[["go"], ["gofmt", "go_vet", "godoc"]],
|
[["go"], ["gofmt", "go_vet", "golint", "godoc"]],
|
||||||
[["yaml"], ["yamllint"]]]
|
[["yaml"], ["yamllint"]]]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -123,6 +123,12 @@ tools_for_extensions = [
|
||||||
command = "go vet"
|
command = "go vet"
|
||||||
error_status = "normal"
|
error_status = "normal"
|
||||||
|
|
||||||
|
[golint]
|
||||||
|
dependencies = ["golint"]
|
||||||
|
url = "golint"
|
||||||
|
command = "golint -set_exit_status"
|
||||||
|
error_status = "normal"
|
||||||
|
|
||||||
[yamllint]
|
[yamllint]
|
||||||
dependencies = ["yamllint"]
|
dependencies = ["yamllint"]
|
||||||
url = "yamllint"
|
url = "yamllint"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue