Return only the unescaped executables from executable callbacks

This commit is contained in:
w0rp
2018-09-14 13:24:59 +01:00
parent 9e09b7ca35
commit 5c86ffd321
7 changed files with 20 additions and 43 deletions

View File

@@ -21,9 +21,9 @@ Execute(Should be able to set a custom executable):
\ . ale#Escape(ale#path#Simplify(g:dir . '/dummy.rb'))
Execute(Setting bundle appends 'exec rubocop'):
let g:ale_ruby_rubocop_executable = 'bundle'
let g:ale_ruby_rubocop_executable = 'path to/bundle'
AssertLinter 'bundle', ale#Escape('bundle')
AssertLinter 'path to/bundle', ale#Escape('path to/bundle')
\ . ' exec rubocop'
\ . ' --format json --force-exclusion --stdin '
\ . ale#Escape(ale#path#Simplify(g:dir . '/dummy.rb'))