2017-03-29 21:42:16 -04:00
|
|
|
" Author: Ben Reedy <https://github.com/breed808>
|
|
|
|
" Description: gosimple for Go files
|
|
|
|
|
2018-03-19 11:34:47 -04:00
|
|
|
function! ale_linters#go#gosimple#GetCommand(buffer) abort
|
|
|
|
return ale#path#BufferCdString(a:buffer) . ' gosimple .'
|
|
|
|
endfunction
|
|
|
|
|
2017-03-29 21:42:16 -04:00
|
|
|
call ale#linter#Define('go', {
|
|
|
|
\ 'name': 'gosimple',
|
|
|
|
\ 'executable': 'gosimple',
|
2019-02-22 13:05:04 -05:00
|
|
|
\ 'command': function('ale_linters#go#gosimple#GetCommand'),
|
2018-03-20 10:19:48 -04:00
|
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
2017-10-31 09:00:55 -04:00
|
|
|
\ 'output_stream': 'both',
|
|
|
|
\ 'lint_file': 1,
|
2017-03-29 21:42:16 -04:00
|
|
|
\})
|