From 36a27fb50aeb4157abedaac1a4d5e9fe3d7b6bc9 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Fri, 2 Dec 2022 19:14:38 +0100 Subject: [PATCH] Add Ruby linter with Steep Fixes #3254 --- ale_linters/ruby/steep.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ale_linters/ruby/steep.vim diff --git a/ale_linters/ruby/steep.vim b/ale_linters/ruby/steep.vim new file mode 100644 index 0000000000..acad54d781 --- /dev/null +++ b/ale_linters/ruby/steep.vim @@ -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')}, +\}) + +