Update all Ruby linters to work consistently with bundler

This commit is contained in:
Ryan Rosenblum
2018-08-24 11:33:59 -04:00
parent 78af99c256
commit 9e09b7ca35
12 changed files with 111 additions and 39 deletions

View File

@@ -21,9 +21,9 @@ Execute(Should be able to set a custom executable):
\ . ale#Escape(ale#path#Simplify(g:dir . '/dummy.rb'))
Execute(Setting bundle appends 'exec rubocop'):
let g:ale_ruby_rubocop_executable = 'path to/bundle'
let g:ale_ruby_rubocop_executable = 'bundle'
AssertLinter 'path to/bundle', ale#Escape('path to/bundle')
AssertLinter 'bundle', ale#Escape('bundle')
\ . ' exec rubocop'
\ . ' --format json --force-exclusion --stdin '
\ . ale#Escape(ale#path#Simplify(g:dir . '/dummy.rb'))