diff options
Diffstat (limited to 'ale_linters/go')
-rw-r--r-- | ale_linters/go/gosimple.vim | 5 | ||||
-rw-r--r-- | ale_linters/go/staticcheck.vim | 5 |
2 files changed, 6 insertions, 4 deletions
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, \}) |