Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Suppresses Rubocop warnings to get accurate version #1512

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion syntax_checkers/ruby/rubocop.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function! SyntaxCheckers_ruby_rubocop_IsAvailable() dict
if !executable(self.getExec())
return 0
endif
return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 12, 0])
let ver = self.getVersion(self.getExecEscaped() . ' --version 2>' . syntastic#util#DevNull())
return syntastic#util#versionIsAtLeast(ver, [0, 12, 0])
endfunction

function! SyntaxCheckers_ruby_rubocop_GetLocList() dict
Expand Down