summaryrefslogtreecommitdiff
path: root/ale_linters/go/staticcheck.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-31 13:00:55 +0000
committerw0rp <devw0rp@gmail.com>2017-10-31 13:01:01 +0000
commit9cd0d75c4f001527d34c0a108bb560ffc352eaf7 (patch)
tree63dfdcb4cdc51ce3c1a1b192b2a42d980f024830 /ale_linters/go/staticcheck.vim
parent50f7ad35529e0672e4161e3c74be5cb87196a2f1 (diff)
downloadale-9cd0d75c4f001527d34c0a108bb560ffc352eaf7.zip
Fix #936 - Check the actual files for gosimple and staticcheck
Diffstat (limited to 'ale_linters/go/staticcheck.vim')
-rw-r--r--ale_linters/go/staticcheck.vim5
1 files changed, 3 insertions, 2 deletions
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,
\})