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.
12 lines
383 B
VimL
12 lines
383 B
VimL
" Author: Brandon Roehl - https://github.com/BrandonRoehl
|
|
" Description: Ruby MRI for Ruby files
|
|
|
|
call ale#Set('ruby_ruby_executable', 'ruby')
|
|
|
|
call ale#linter#Define('ruby', {
|
|
\ 'name': 'ruby',
|
|
\ 'executable': {b -> ale#Var(b, 'ruby_ruby_executable')},
|
|
\ 'command': '%e -w -c -T1 %t',
|
|
\ 'output_stream': 'stderr',
|
|
\ 'callback': 'ale#handlers#ruby#HandleSyntaxErrors',
|
|
\})
|