summaryrefslogtreecommitdiff
path: root/ale_linters/go/gosimple.vim
blob: 281a0e53c69c687d7fa99235b28eaf98636af6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" 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',
\   'command': function('ale_linters#go#gosimple#GetCommand'),
\   'callback': 'ale#handlers#go#Handler',
\   'output_stream': 'both',
\   'lint_file': 1,
\})