diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-10-31 10:15:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 10:15:48 +0000 |
commit | 73f9f3da23ffc2eae488180239708d5ccf1ae668 (patch) | |
tree | 711dc4e5c24e2a9e473f84f21e32093dc9cbda80 | |
parent | f01611464aaaa427d22407f472b2eaf62b3ceec1 (diff) | |
parent | be02ba4ed7acb393a6729618fd72b75c868dc12a (diff) | |
download | ale-73f9f3da23ffc2eae488180239708d5ccf1ae668.zip |
Merge pull request #2036 from maxhungry/fix-rubocop-fixer
Use correct exclusion flag in rubocop fixer
-rw-r--r-- | autoload/ale/fixers/rubocop.vim | 2 | ||||
-rw-r--r-- | test/fixers/test_rubocop_fixer_callback.vader | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/autoload/ale/fixers/rubocop.vim b/autoload/ale/fixers/rubocop.vim index 6bb3cc4a..33ba6887 100644 --- a/autoload/ale/fixers/rubocop.vim +++ b/autoload/ale/fixers/rubocop.vim @@ -9,7 +9,7 @@ function! ale#fixers#rubocop#GetCommand(buffer) abort return ale#handlers#ruby#EscapeExecutable(l:executable, 'rubocop') \ . (!empty(l:config) ? ' --config ' . ale#Escape(l:config) : '') \ . (!empty(l:options) ? ' ' . l:options : '') - \ . ' --auto-correct --force-exclusions %t' + \ . ' --auto-correct --force-exclusion %t' endfunction function! ale#fixers#rubocop#Fix(buffer) abort diff --git a/test/fixers/test_rubocop_fixer_callback.vader b/test/fixers/test_rubocop_fixer_callback.vader index 144ee8d4..866326bf 100644 --- a/test/fixers/test_rubocop_fixer_callback.vader +++ b/test/fixers/test_rubocop_fixer_callback.vader @@ -23,7 +23,7 @@ Execute(The rubocop callback should return the correct default values): \ { \ 'read_temporary_file': 1, \ 'command': ale#Escape(g:ale_ruby_rubocop_executable) - \ . ' --auto-correct --force-exclusions %t', + \ . ' --auto-correct --force-exclusion %t', \ }, \ ale#fixers#rubocop#Fix(bufnr('')) @@ -35,7 +35,7 @@ Execute(The rubocop callback should include configuration files): \ 'read_temporary_file': 1, \ 'command': ale#Escape(g:ale_ruby_rubocop_executable) \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.rubocop.yml')) - \ . ' --auto-correct --force-exclusions %t', + \ . ' --auto-correct --force-exclusion %t', \ }, \ ale#fixers#rubocop#Fix(bufnr('')) @@ -49,6 +49,6 @@ Execute(The rubocop callback should include custom rubocop options): \ 'command': ale#Escape(g:ale_ruby_rubocop_executable) \ . ' --config ' . ale#Escape(ale#path#Simplify(g:dir . '/ruby_paths/with_config/.rubocop.yml')) \ . ' --except Lint/Debugger' - \ . ' --auto-correct --force-exclusions %t', + \ . ' --auto-correct --force-exclusion %t', \ }, \ ale#fixers#rubocop#Fix(bufnr('')) |