mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 21:44:47 +08:00
Fix bug with RuboCop linter when options are not set
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
" Author: ynonp - https://github.com/ynonp, Eddie Lebow https://github.com/elebow
|
" Author: ynonp - https://github.com/ynonp, Eddie Lebow https://github.com/elebow
|
||||||
" Description: RuboCop, a code style analyzer for Ruby files
|
" 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
|
function! ale_linters#ruby#rubocop#GetCommand(buffer) abort
|
||||||
let l:executable = ale#Var(a:buffer, 'ruby_rubocop_executable')
|
let l:executable = ale#Var(a:buffer, 'ruby_rubocop_executable')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user