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