From 1c551d20380875585a4d8a1eef39429f54ec1466 Mon Sep 17 00:00:00 2001 From: Bruno Buccolo Date: Mon, 10 Aug 2015 11:33:45 -0300 Subject: [PATCH] Suppresses Rubocop warnings to get accurate version --- syntax_checkers/ruby/rubocop.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/ruby/rubocop.vim b/syntax_checkers/ruby/rubocop.vim index 56f54bf29..ed7b6841d 100644 --- a/syntax_checkers/ruby/rubocop.vim +++ b/syntax_checkers/ruby/rubocop.vim @@ -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