diff options
author | w0rp <devw0rp@gmail.com> | 2018-09-14 13:24:59 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-09-14 13:24:59 +0100 |
commit | 5c86ffd321ee42b2c59e8455710474e3c13d3e09 (patch) | |
tree | 8c6702aa0fe866f1e7d289f76f4b5bd806847f89 /ale_linters/ruby/rubocop.vim | |
parent | 9e09b7ca3559e2c14ed2401bb666b441b22dafff (diff) | |
download | ale-5c86ffd321ee42b2c59e8455710474e3c13d3e09.zip |
Return only the unescaped executables from executable callbacks
Diffstat (limited to 'ale_linters/ruby/rubocop.vim')
-rw-r--r-- | ale_linters/ruby/rubocop.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim index dce27e3c..58d73407 100644 --- a/ale_linters/ruby/rubocop.vim +++ b/ale_linters/ruby/rubocop.vim @@ -2,9 +2,9 @@ " Description: RuboCop, a code style analyzer for Ruby files function! ale_linters#ruby#rubocop#GetCommand(buffer) abort - let l:executable = ale#handlers#rubocop#GetExecutable(a:buffer) + let l:executable = ale#Var(a:buffer, 'ruby_rubocop_executable') - return l:executable + return ale#handlers#ruby#EscapeExecutable(l:executable, 'rubocop') \ . ' --format json --force-exclusion ' \ . ale#Var(a:buffer, 'ruby_rubocop_options') \ . ' --stdin ' . ale#Escape(expand('#' . a:buffer . ':p')) |