From 9cd0d75c4f001527d34c0a108bb560ffc352eaf7 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 31 Oct 2017 13:00:55 +0000 Subject: Fix #936 - Check the actual files for gosimple and staticcheck --- ale_linters/go/gosimple.vim | 5 +++-- ale_linters/go/staticcheck.vim | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'ale_linters') 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, \}) -- cgit v1.2.3