From 66f4e96937acaa897fe5281229d1bd4bcaefb22c Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Tue, 22 Sep 2015 20:51:05 +0300 Subject: [PATCH] Eslint checker: log if called as a generic frontend. --- plugin/syntastic.vim | 2 +- syntax_checkers/javascript/eslint.vim | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 16b1928b..8855fab5 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-172' +let g:_SYNTASTIC_VERSION = '3.6.0-173' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/javascript/eslint.vim b/syntax_checkers/javascript/eslint.vim index 29b978f7..437bc558 100644 --- a/syntax_checkers/javascript/eslint.vim +++ b/syntax_checkers/javascript/eslint.vim @@ -26,6 +26,10 @@ let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_eslint_IsAvailable() dict + if g:syntastic_javascript_eslint_generic + call self.log('generic eslint, exec =', self.getExec()) + endif + if !executable(self.getExec()) return 0 endif