Fix #936 - Check the actual files for gosimple and staticcheck

This commit is contained in:
w0rp
2017-10-31 13:00:55 +00:00
parent 50f7ad3552
commit 9cd0d75c4f
4 changed files with 8 additions and 6 deletions

View File

@@ -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,
\})

View File

@@ -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,
\})