summaryrefslogtreecommitdiff
path: root/ale_linters/ruby
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-09 22:43:25 +0100
committerw0rp <devw0rp@gmail.com>2017-07-09 22:43:31 +0100
commit6a84605c578ea844a02e429edb38ff2986bc308b (patch)
treea76cd146691fe7c11ae9576162091ab617ed2ba8 /ale_linters/ruby
parentb50a7318fbf8836b820df9d10e0fc6ffba6bcd1e (diff)
downloadale-6a84605c578ea844a02e429edb38ff2986bc308b.zip
Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter
Diffstat (limited to 'ale_linters/ruby')
-rw-r--r--ale_linters/ruby/rubocop.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim
index e78ccd10..5c1a60e7 100644
--- a/ale_linters/ruby/rubocop.vim
+++ b/ale_linters/ruby/rubocop.vim
@@ -10,7 +10,7 @@ function! ale_linters#ruby#rubocop#GetCommand(buffer) abort
return ale#Escape(l:executable) . l:exec_args
\ . ' --format json --force-exclusion '
\ . ale#Var(a:buffer, 'ruby_rubocop_options')
- \ . ' --stdin ' . bufname(a:buffer)
+ \ . ' --stdin ' . ale#Escape(expand('#' . a:buffer . ':p'))
endfunction
function! ale_linters#ruby#rubocop#Handle(buffer, lines) abort