summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorYuto Ito <uplus@users.noreply.github.com>2021-09-23 18:46:16 +0900
committerGitHub <noreply@github.com>2021-09-23 18:46:16 +0900
commitc9c89a1853c01f3451edd7105814d123023ddbd8 (patch)
tree895dc03346b9d51bba6622edb1ec54a0338934fd /autoload
parentf8a4c78b5b293d11da9075373c9de0bb5afdeffe (diff)
downloadale-c9c89a1853c01f3451edd7105814d123023ddbd8.zip
Fix: Failed to execute rubocop fixer on other machine (#3916)
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fixers/rubocop.vim2
1 files changed, 0 insertions, 2 deletions
diff --git a/autoload/ale/fixers/rubocop.vim b/autoload/ale/fixers/rubocop.vim
index cdfb014a..5a1b7959 100644
--- a/autoload/ale/fixers/rubocop.vim
+++ b/autoload/ale/fixers/rubocop.vim
@@ -21,12 +21,10 @@ endfunction
function! ale#fixers#rubocop#GetCommand(buffer) abort
let l:executable = ale#Var(a:buffer, 'ruby_rubocop_executable')
- let l:config = ale#path#FindNearestFile(a:buffer, '.rubocop.yml')
let l:options = ale#Var(a:buffer, 'ruby_rubocop_options')
let l:auto_correct_all = ale#Var(a:buffer, 'ruby_rubocop_auto_correct_all')
return ale#ruby#EscapeExecutable(l:executable, 'rubocop')
- \ . (!empty(l:config) ? ' --config ' . ale#Escape(l:config) : '')
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . (l:auto_correct_all ? ' --auto-correct-all' : ' --auto-correct')
\ . ' --force-exclusion --stdin %s'