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