mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Take the rubocop filename from the buffer number given to the function
This commit is contained in:
@@ -34,10 +34,10 @@ function! ale_linters#ruby#rubocop#Handle(buffer, lines) abort
|
||||
return l:output
|
||||
endfunction
|
||||
|
||||
function! ale_linters#ruby#rubocop#GetCommand(_buffer) abort
|
||||
function! ale_linters#ruby#rubocop#GetCommand(buffer) abort
|
||||
return 'rubocop --format emacs --force-exclusion ' .
|
||||
\ g:ale_ruby_rubocop_options .
|
||||
\ ' --stdin ' . expand('%')
|
||||
\ ' --stdin ' . bufname(a:buffer)
|
||||
endfunction
|
||||
|
||||
" Set this option to change Rubocop options.
|
||||
|
||||
Reference in New Issue
Block a user