2017-04-08 06:24:20 -04:00
|
|
|
" Author: Brandon Roehl - https://github.com/BrandonRoehl
|
|
|
|
" Description: Ruby MRI for Ruby files
|
|
|
|
|
2017-11-28 04:47:04 -05:00
|
|
|
call ale#Set('ruby_ruby_executable', 'ruby')
|
|
|
|
|
2017-04-08 06:24:20 -04:00
|
|
|
call ale#linter#Define('ruby', {
|
|
|
|
\ 'name': 'ruby',
|
2019-02-22 13:05:04 -05:00
|
|
|
\ 'executable': {b -> ale#Var(b, 'ruby_ruby_executable')},
|
2018-08-02 18:44:12 -04:00
|
|
|
\ 'command': '%e -w -c -T1 %t',
|
2017-04-08 06:24:20 -04:00
|
|
|
\ 'output_stream': 'stderr',
|
2017-04-25 13:38:02 -04:00
|
|
|
\ 'callback': 'ale#handlers#ruby#HandleSyntaxErrors',
|
2017-04-08 06:24:20 -04:00
|
|
|
\})
|