Skip to content

Commit

Permalink
Add Ruby linter with Steep
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed May 27, 2024
1 parent c88bddf commit 36a27fb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ale_linters/ruby/steep.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
call ale#Set('ruby_steep_executable', 'steep')
call ale#Set('ruby_steep_options', '')

function! ale_linters#ruby#steep#GetCommand(buffer) abort
return '%e langserver --log-level=debug'
endfunction

call ale#linter#Define('ruby', {
\ 'name': 'steep',
\ 'lsp': 'stdio',
\ 'language': 'ruby',
\ 'executable': {b -> ale#Var(b, 'ruby_steep_executable')},
\ 'command': function('ale_linters#ruby#steep#GetCommand'),
\ 'project_root': function('ale#ruby#FindProjectRoot'),
\ 'initialization_options': {b -> ale#Var(b, 'ruby_steep_options')},
\})


0 comments on commit 36a27fb

Please sign in to comment.