2018-03-31 10:55:20 -04:00
|
|
|
" Author: Ben Reedy <https://github.com/breed808>
|
|
|
|
" Description: gosimple for Go files
|
|
|
|
|
|
|
|
function! ale_linters#go#gosimple#GetCommand(buffer) abort
|
|
|
|
return ale#path#BufferCdString(a:buffer) . ' gosimple .'
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
call ale#linter#Define('go', {
|
|
|
|
\ 'name': 'gosimple',
|
|
|
|
\ 'executable': 'gosimple',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'command': function('ale_linters#go#gosimple#GetCommand'),
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
|
|
|
\ 'output_stream': 'both',
|
|
|
|
\ 'lint_file': 1,
|
|
|
|
\})
|