Fix #2821 - Fix the debride linter after merging older code

This commit is contained in:
w0rp 2019-10-09 09:53:50 +01:00
parent f932211309
commit e8de12c9f0
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
2 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,7 @@ call ale#Set('ruby_debride_options', '')
function! ale_linters#ruby#debride#GetCommand(buffer) abort function! ale_linters#ruby#debride#GetCommand(buffer) abort
let l:executable = ale#Var(a:buffer, 'ruby_debride_executable') let l:executable = ale#Var(a:buffer, 'ruby_debride_executable')
return ale#handlers#ruby#EscapeExecutable(l:executable, 'debride') return ale#ruby#EscapeExecutable(l:executable, 'debride')
\ . ale#Var(a:buffer, 'ruby_debride_options') \ . ale#Var(a:buffer, 'ruby_debride_options')
\ . ' %s' \ . ' %s'
endfunction endfunction

View File

@ -0,0 +1,8 @@
Before:
call ale#assert#SetUpLinterTest('ruby', 'debride')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'debride', ale#Escape('debride') . ' %s'