From 7b8526b9665173721b0453b3fe2308a69827c019 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Sun, 15 Mar 2015 07:30:50 +0200 Subject: [PATCH] Flow checker: bail out if there is no .flowconfig. --- plugin/syntastic.vim | 2 +- syntax_checkers/javascript/flow.vim | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 84af7ac9..73a71146 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.6.0-57' +let g:_SYNTASTIC_VERSION = '3.6.0-58' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/javascript/flow.vim b/syntax_checkers/javascript/flow.vim index 5f85b484..e2b5683f 100644 --- a/syntax_checkers/javascript/flow.vim +++ b/syntax_checkers/javascript/flow.vim @@ -22,6 +22,10 @@ let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_flow_GetLocList() dict + if findfile('.flowconfig', '.;') == '' + return [] + endif + let makeprg = self.makeprgBuild({ \ 'exe': self.getExecEscaped() . ' check', \ 'args_after': '--show-all-errors --json' })