diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index ae3ed8a3..c91a21e1 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.4.0-106' +let g:syntastic_version = '3.4.0-107' lockvar g:syntastic_version " Sanity checks {{{1 diff --git a/plugin/syntastic/loclist.vim b/plugin/syntastic/loclist.vim index 6ab2132e..e7c05bf7 100644 --- a/plugin/syntastic/loclist.vim +++ b/plugin/syntastic/loclist.vim @@ -49,6 +49,7 @@ endfunction " }}}2 function! g:SyntasticLoclist.isNewerThan(stamp) " {{{2 if !exists("self._stamp") let self._stamp = [] + return 0 endif return syntastic#util#compareLexi(self._stamp, a:stamp) > 0 endfunction " }}}2 diff --git a/plugin/syntastic/registry.vim b/plugin/syntastic/registry.vim index fb551528..47d83106 100644 --- a/plugin/syntastic/registry.vim +++ b/plugin/syntastic/registry.vim @@ -30,7 +30,7 @@ let s:defaultCheckers = { \ 'dart': ['dartanalyzer'], \ 'docbk': ['xmllint'], \ 'dustjs': ['swiffer'], - \ 'elixir': ['elixir'], + \ 'elixir': [], \ 'erlang': ['escript'], \ 'eruby': ['ruby'], \ 'fortran': ['gfortran'], diff --git a/syntax_checkers/elixir/elixir.vim b/syntax_checkers/elixir/elixir.vim index 566131d5..3914fa9b 100644 --- a/syntax_checkers/elixir/elixir.vim +++ b/syntax_checkers/elixir/elixir.vim @@ -24,6 +24,11 @@ function! SyntaxCheckers_elixir_elixir_IsAvailable() dict endfunction function! SyntaxCheckers_elixir_elixir_GetLocList() dict + if !exists('g:syntastic_enable_elixir_checker') || !g:syntastic_enable_elixir_checker + call syntastic#log#error('checker elixir/elixir: checks disabled for security reasons; ' . + \ 'set g:syntastic_enable_elixir_checker to 1 to override') + return [] + endif let make_options = {} let compile_command = 'elixir'