summaryrefslogtreecommitdiff
path: root/ale_linters/go
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
parent50f7ad35529e0672e4161e3c74be5cb87196a2f1 (diff)
downloadale-9cd0d75c4f001527d34c0a108bb560ffc352eaf7.zip
Fix #936 - Check the actual files for gosimple and staticcheck
Diffstat (limited to 'ale_linters/go')
-rw-r--r--ale_linters/go/gosimple.vim5
-rw-r--r--ale_linters/go/staticcheck.vim5
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,
\})