diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-31 13:00:55 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-31 13:01:01 +0000 |
commit | 9cd0d75c4f001527d34c0a108bb560ffc352eaf7 (patch) | |
tree | 63dfdcb4cdc51ce3c1a1b192b2a42d980f024830 | |
parent | 50f7ad35529e0672e4161e3c74be5cb87196a2f1 (diff) | |
download | ale-9cd0d75c4f001527d34c0a108bb560ffc352eaf7.zip |
Fix #936 - Check the actual files for gosimple and staticcheck
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | ale_linters/go/gosimple.vim | 5 | ||||
-rw-r--r-- | ale_linters/go/staticcheck.vim | 5 | ||||
-rw-r--r-- | doc/ale.txt | 2 |
4 files changed, 8 insertions, 6 deletions
@@ -95,7 +95,7 @@ formatting. | Fortran | [gcc](https://gcc.gnu.org/) | | FusionScript | [fusion-lint](https://github.com/RyanSquared/fusionscript) | | GLSL | [glslang](https://github.com/KhronosGroup/glslang) | -| Go | [gofmt](https://golang.org/cmd/gofmt/), [go vet](https://golang.org/cmd/vet/), [golint](https://godoc.org/github.com/golang/lint), [gometalinter](https://github.com/alecthomas/gometalinter) !!, [go build](https://golang.org/cmd/go/) !!, [gosimple](https://github.com/dominikh/go-tools/tree/master/cmd/gosimple), [staticcheck](https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck) | +| Go | [gofmt](https://golang.org/cmd/gofmt/), [go vet](https://golang.org/cmd/vet/), [golint](https://godoc.org/github.com/golang/lint), [gometalinter](https://github.com/alecthomas/gometalinter) !!, [go build](https://golang.org/cmd/go/) !!, [gosimple](https://github.com/dominikh/go-tools/tree/master/cmd/gosimple) !!, [staticcheck](https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck) !! | | GraphQL | [gqlint](https://github.com/happylinks/gqlint) | | Haml | [haml-lint](https://github.com/brigade/haml-lint) | | Handlebars | [ember-template-lint](https://github.com/rwjblue/ember-template-lint) | diff --git a/ale_linters/go/gosimple.vim b/ale_linters/go/gosimple.vim index 9188e0d7..8a4c01e1 100644 --- a/ale_linters/go/gosimple.vim +++ b/ale_linters/go/gosimple.vim @@ -4,7 +4,8 @@ call ale#linter#Define('go', { \ 'name': 'gosimple', \ 'executable': 'gosimple', -\ 'command': 'gosimple %t', +\ 'command': 'gosimple %s', \ 'callback': 'ale#handlers#unix#HandleAsWarning', -\ 'output_stream': 'both' +\ 'output_stream': 'both', +\ 'lint_file': 1, \}) diff --git a/ale_linters/go/staticcheck.vim b/ale_linters/go/staticcheck.vim index cb4a5c72..255fd17c 100644 --- a/ale_linters/go/staticcheck.vim +++ b/ale_linters/go/staticcheck.vim @@ -4,7 +4,8 @@ call ale#linter#Define('go', { \ 'name': 'staticcheck', \ 'executable': 'staticcheck', -\ 'command': 'staticcheck %t', +\ 'command': 'staticcheck %s', \ 'callback': 'ale#handlers#unix#HandleAsWarning', -\ 'output_stream': 'both' +\ 'output_stream': 'both', +\ 'lint_file': 1, \}) diff --git a/doc/ale.txt b/doc/ale.txt index 9b18d3d3..bedf0cff 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -278,7 +278,7 @@ Notes: * Fortran: `gcc` * FusionScript: `fusion-lint` * GLSL: glslang -* Go: `gofmt`, `go vet`, `golint`, `gometalinter`!!, `go build`!!, `gosimple`, `staticcheck` +* Go: `gofmt`, `go vet`, `golint`, `gometalinter`!!, `go build`!!, `gosimple`!!, `staticcheck`!! * GraphQL: `gqlint` * Haml: `haml-lint` * Handlebars: `ember-template-lint` |