summaryrefslogtreecommitdiff
path: root/ale_linters/ruby/ruby.vim
blob: 2dc55eb0533a1acc34b605453f9fd17a97ac97e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
" 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',
\})