diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-03-20 20:17:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-20 20:17:43 +0000 |
commit | 57a93cbc04de402686494d47bd4147c827383086 (patch) | |
tree | 31363ece819ed2530900cc5466253eb1660ed6d9 /ale_linters/go/gotype.vim | |
parent | 43e8f47e6e8c4fd3cc7ea161120c320b85813efd (diff) | |
parent | 6452c5e2f0aded3044a4263189f5b46c37409981 (diff) | |
download | ale-57a93cbc04de402686494d47bd4147c827383086.zip |
Merge pull request #1433 from benpaxton-hf/lint-whole-package
Lint whole package for gosimple and gotype
Diffstat (limited to 'ale_linters/go/gotype.vim')
-rw-r--r-- | ale_linters/go/gotype.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/go/gotype.vim b/ale_linters/go/gotype.vim index 13055a89..f4bb274e 100644 --- a/ale_linters/go/gotype.vim +++ b/ale_linters/go/gotype.vim @@ -6,7 +6,8 @@ function! ale_linters#go#gotype#GetCommand(buffer) abort return endif - return 'gotype %s' + + return ale#path#BufferCdString(a:buffer) . ' gotype .' endfunction call ale#linter#Define('go', { @@ -14,6 +15,6 @@ call ale#linter#Define('go', { \ 'output_stream': 'stderr', \ 'executable': 'gotype', \ 'command_callback': 'ale_linters#go#gotype#GetCommand', -\ 'callback': 'ale#handlers#unix#HandleAsError', +\ 'callback': 'ale#handlers#go#Handler', \ 'lint_file': 1, \}) |