mirror of https://github.com/dense-analysis/ale
Fix #2821 - Fix the debride linter after merging older code
This commit is contained in:
parent
f932211309
commit
e8de12c9f0
|
@ -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
|
||||||
|
|
|
@ -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'
|
Loading…
Reference in New Issue