mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 08:32:24 +00:00
9fe7b1fe6a
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
13 lines
346 B
VimL
13 lines
346 B
VimL
" Author: Ben Reedy <https://github.com/breed808>
|
|
" Description: gosimple for Go files
|
|
|
|
call ale#linter#Define('go', {
|
|
\ 'name': 'gosimple',
|
|
\ 'executable': 'gosimple',
|
|
\ 'cwd': '%s:h',
|
|
\ 'command': {b -> ale#go#EnvString(b) . 'gosimple .'},
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
|
\ 'output_stream': 'both',
|
|
\ 'lint_file': 1,
|
|
\})
|