diff options
author | Miguel Palhas <mpalhas@gmail.com> | 2017-08-10 14:52:54 +0100 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-08-10 14:52:54 +0100 |
commit | 0c26e8945cc662fb41ad3b2a808516a4501d1e07 (patch) | |
tree | e2e52f9ed7cd789ad05ff51c97ec35a59f7a98af /autoload | |
parent | 9ae2df195865e1f5ce3b1dab8b43c89e59ad471e (diff) | |
download | ale-0c26e8945cc662fb41ad3b2a808516a4501d1e07.zip |
Rubocop fixer now uses g:ale_ruby_rubocop_options (#841)
* Rubocop fixer now uses g:ale_ruby_rubocop_options
* Adds spec
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fixers/rubocop.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/fixers/rubocop.vim b/autoload/ale/fixers/rubocop.vim index 88dc1c43..557b7594 100644 --- a/autoload/ale/fixers/rubocop.vim +++ b/autoload/ale/fixers/rubocop.vim @@ -7,7 +7,8 @@ function! ale#fixers#rubocop#GetCommand(buffer) abort return ale#Escape(l:executable) . l:exec_args \ . (!empty(l:config) ? ' --config ' . ale#Escape(l:config) : '') - \ . ' --auto-correct %t' + \ . ' --auto-correct %t ' + \ . ale#Var(a:buffer, 'ruby_rubocop_options') endfunction |