Merge pull request #1921 from rrosenblum/ruby_linters
Fix bug with RuboCop linter when options are not set
This commit is contained in:
commit
f1f2a22228
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
" Author: ynonp - https://github.com/ynonp, Eddie Lebow https://github.com/elebow
|
||||
" Description: RuboCop, a code style analyzer for Ruby files
|
||||
|
||||
call ale#Set('ruby_rubocop_executable', 'rubocop')
|
||||
call ale#Set('ruby_rubocop_options', '')
|
||||
|
||||
function! ale_linters#ruby#rubocop#GetCommand(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'ruby_rubocop_executable')
|
||||
|
||||
|
|
Reference in a new issue