Minor cleanup: &cpo guards and formatting.

This commit is contained in:
LCD 47 2014-01-03 11:29:08 +02:00
parent cfe872b32b
commit b9accaa810
132 changed files with 1019 additions and 146 deletions

View File

@ -14,13 +14,13 @@ if exists('g:loaded_syntastic_actionscript_mxmlc_checker')
endif
let g:loaded_syntastic_actionscript_mxmlc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_actionscript_mxmlc_conf')
let g:syntastic_actionscript_mxmlc_conf = ''
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_actionscript_mxmlc_GetHighlightRegex(item)
let term = ''
@ -66,3 +66,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -16,13 +16,13 @@ if !exists('g:syntastic_ada_compiler')
let g:syntastic_ada_compiler = 'gcc'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_ada_gcc_IsAvailable() dict
return executable(expand(g:syntastic_ada_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_ada_compiler_options')
let g:syntastic_ada_compiler_options = ''
endif

View File

@ -28,7 +28,10 @@
if exists("g:loaded_syntastic_applescript_osacompile_checker")
finish
endif
let g:loaded_syntastic_applescript_osacompile_checker=1
let g:loaded_syntastic_applescript_osacompile_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_applescript_osacompile_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-o ' . tempname() . '.scpt' })
@ -38,4 +41,9 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'applescript',
\ 'name': 'osacompile'})
\ 'name': 'osacompile' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_asciidoc_asciidoc_checker")
endif
let g:loaded_syntastic_asciidoc_asciidoc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_asciidoc_asciidoc_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() })
@ -37,3 +40,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'asciidoc',
\ 'name': 'asciidoc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,6 +8,7 @@
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================
if exists("g:loaded_syntastic_c_checkpatch_checker")
finish
endif
@ -20,6 +21,9 @@ elseif executable("./scripts/checkpatch.pl")
let g:syntastic_c_checker_checkpatch_location = './scripts/checkpatch.pl'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_checkpatch_IsAvailable() dict
return exists("g:syntastic_c_checker_checkpatch_location")
endfunction
@ -44,3 +48,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'checkpatch',
\ 'exec': 'checkpatch.pl'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_cppcheck_config_file')
let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_cppcheck_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file),
@ -58,3 +61,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'cppcheck'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,7 +10,6 @@
"
"============================================================================
if exists('g:loaded_syntastic_c_gcc_checker')
finish
endif
@ -20,13 +19,13 @@ if !exists('g:syntastic_c_compiler')
let g:syntastic_c_compiler = executable('gcc') ? 'gcc' : 'clang'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_gcc_IsAvailable() dict
return executable(expand(g:syntastic_c_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_c_compiler_options')
let g:syntastic_c_compiler_options = '-std=gnu99'
endif

View File

@ -57,3 +57,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_oclint_config_file')
let g:syntastic_oclint_config_file = '.syntastic_oclint_config'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_oclint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'post_args': '-- -c ' . syntastic#c#ReadConfig(g:syntastic_oclint_config_file) })
@ -48,3 +51,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'oclint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_sparse_config_file')
let g:syntastic_sparse_config_file = '.syntastic_sparse_config'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_sparse_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': '-ftabstop=' . &ts . ' ' . syntastic#c#ReadConfig(g:syntastic_sparse_config_file) })
@ -42,3 +45,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'sparse'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_splint_config_file')
let g:syntastic_splint_config_file = '.syntastic_splint_config'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_splint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'post_args': '-showfunc -hints +quiet ' . syntastic#c#ReadConfig(g:syntastic_splint_config_file) })
@ -48,3 +51,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'splint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -30,3 +30,5 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'ycm'})
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_chef_foodcritic_checker")
finish
endif
let g:loaded_syntastic_chef_foodcritic_checker=1
let g:loaded_syntastic_chef_foodcritic_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_chef_foodcritic_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -21,9 +24,16 @@ function! SyntaxCheckers_chef_foodcritic_GetLocList() dict
" FC023: Prefer conditional attributes: ./recipes/config.rb:49
let errorformat = 'FC%n: %m: %f:%l'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'chef',
\ 'name': 'foodcritic'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,15 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_co_coco_checker")
finish
endif
let g:loaded_syntastic_co_coco_checker=1
let g:loaded_syntastic_co_coco_checker = 1
"bail if the user doesnt have coco installed
if !executable("coco")
finish
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_co_coco_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-c -o /tmp' })
@ -28,9 +27,16 @@ function! SyntaxCheckers_co_coco_GetLocList() dict
\ '%EFailed at: %f,'.
\ '%Z%trror: Parse error on line %l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'co',
\ 'name': 'coco'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -20,13 +20,13 @@ if !exists('g:syntastic_cobol_compiler')
let g:syntastic_cobol_compiler = 'cobc'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cobol_cobc_IsAvailable() dict
return executable(expand(g:syntastic_cobol_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_cobol_compiler_options')
let g:syntastic_cobol_compiler_options = ''
endif

View File

@ -12,10 +12,14 @@
"
" Note: this script requires CoffeeScript version 1.6.2 or newer.
"
if exists("g:loaded_syntastic_coffee_coffee_checker")
finish
endif
let g:loaded_syntastic_coffee_coffee_checker=1
let g:loaded_syntastic_coffee_coffee_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_coffee_coffee_IsAvailable() dict
let exe = self.getExec()
@ -37,9 +41,16 @@ function! SyntaxCheckers_coffee_coffee_GetLocList() dict
\ '%-Z%p^,' .
\ '%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coffee',
\ 'name': 'coffee'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_coffee_coffeelint_checker")
finish
endif
let g:loaded_syntastic_coffee_coffeelint_checker=1
let g:loaded_syntastic_coffee_coffeelint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_coffee_coffeelint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--csv' })
@ -33,3 +37,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coffee',
\ 'name': 'coffeelint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_coq_coqtop_checker")
finish
endif
let g:loaded_syntastic_coq_coqtop_checker=1
let g:loaded_syntastic_coq_coqtop_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_coq_coqtop_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-noglob -batch -load-vernac-source' })
@ -30,3 +33,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coq',
\ 'name': 'coqtop'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_cppcheck_config_file')
let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cpp_cppcheck_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file),
@ -58,3 +61,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp',
\ 'name': 'cppcheck'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -31,6 +31,9 @@ if !exists('g:syntastic_cpp_cpplint_thres')
let g:syntastic_cpp_cpplint_thres = 5
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cpp_cpplint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--verbose=3' })
@ -53,3 +56,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp',
\ 'name': 'cpplint',
\ 'exec': 'cpplint.py'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_cpp_compiler')
let g:syntastic_cpp_compiler = executable('g++') ? 'g++' : 'clang++'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cpp_gcc_IsAvailable() dict
return executable(expand(g:syntastic_cpp_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_cpp_compiler_options')
let g:syntastic_cpp_compiler_options = ''
endif

View File

@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp',
\ 'name': 'oclint',
\ 'redirect': 'c/oclint'})
" vim: set et sts=4 sw=4:

View File

@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp',
\ 'name': 'ycm',
\ 'redirect': 'c/ycm'})
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_cs_mcs_checker")
finish
endif
let g:loaded_syntastic_cs_mcs_checker=1
let g:loaded_syntastic_cs_mcs_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cs_mcs_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--parse' })
@ -29,3 +32,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cs',
\ 'name': 'mcs'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -17,12 +17,15 @@
if exists('g:loaded_syntastic_css_csslint_checker')
finish
endif
let g:loaded_syntastic_css_csslint_checker=1
let g:loaded_syntastic_css_csslint_checker = 1
if !exists('g:syntastic_csslint_options')
let g:syntastic_csslint_options = ''
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_css_csslint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--format=compact ' . g:syntastic_csslint_options })
@ -44,3 +47,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'css',
\ 'name': 'csslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,10 +13,11 @@
" See here for details of phpcs
" - phpcs (see http://pear.php.net/package/PHP_CodeSniffer)
"
if exists("g:loaded_syntastic_css_phpcs_checker")
finish
endif
let g:loaded_syntastic_css_phpcs_checker=1
let g:loaded_syntastic_css_phpcs_checker = 1
runtime! syntax_checkers/php/*.vim
@ -24,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'css',
\ 'name': 'phpcs',
\ 'redirect': 'php/phpcs'})
" vim: set et sts=4 sw=4:

View File

@ -18,7 +18,10 @@
if exists("g:loaded_syntastic_css_prettycss_checker")
finish
endif
let g:loaded_syntastic_css_prettycss_checker=1
let g:loaded_syntastic_css_prettycss_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_css_prettycss_GetHighlightRegex(item)
let term = matchstr(a:item["text"], '\m (\zs[^)]\+\ze)$')
@ -53,3 +56,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'css',
\ 'name': 'prettycss'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_cucumber_cucumber_checker")
finish
endif
let g:loaded_syntastic_cucumber_cucumber_checker=1
let g:loaded_syntastic_cucumber_cucumber_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cucumber_cucumber_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--dry-run --quiet --strict --format pretty' })
@ -32,3 +35,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cucumber',
\ 'name': 'cucumber'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -18,11 +18,13 @@
"
" let g:syntastic_cuda_arch = "sm_20"
if exists("g:loaded_syntastic_cuda_nvcc_checker")
finish
endif
let g:loaded_syntastic_cuda_nvcc_checker=1
let g:loaded_syntastic_cuda_nvcc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
if exists('g:syntastic_cuda_arch')
@ -68,3 +70,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cuda',
\ 'name': 'nvcc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -24,13 +24,13 @@ if !exists('g:syntastic_d_compiler')
let g:syntastic_d_compiler = 'dmd'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_d_dmd_IsAvailable() dict
return executable(expand(g:syntastic_d_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_d_compiler_options')
let g:syntastic_d_compiler_options = ''
endif

View File

@ -8,11 +8,15 @@
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================
if exists("g:loaded_syntastic_dart_dartanalyzer_checker")
finish
endif
let g:loaded_syntastic_dart_dartanalyzer_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error)
if a:error['len']
let lcol = a:error['col'] - 1
@ -65,3 +69,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'dart',
\ 'name': 'dartanalyzer' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,7 @@
if exists("g:loaded_syntastic_docbk_xmllint_checker")
finish
endif
let g:loaded_syntastic_docbk_xmllint_checker=1
let g:loaded_syntastic_docbk_xmllint_checker = 1
runtime! syntax_checkers/xml/*.vim
@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'docbk',
\ 'name': 'xmllint',
\ 'redirect': 'xml/xmllint'})
" vim: set et sts=4 sw=4:

View File

@ -15,9 +15,8 @@ endif
let g:loaded_syntastic_dustjs_swiffer_checker = 1
function! SyntaxCheckers_dustjs_swiffer_IsAvailable() dict
return executable('swiffer')
endfunction
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -32,3 +31,8 @@ function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict
call SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'dustjs',
\ 'name': 'swiffer'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_elixir_elixir_checker")
finish
endif
let g:loaded_syntastic_elixir_elixir_checker=1
let g:loaded_syntastic_elixir_elixir_checker = 1
let s:save_cpo = &cpo
set cpo&vim
" TODO: we should probably split this into separate checkers
function! SyntaxCheckers_elixir_elixir_IsAvailable() dict
@ -40,3 +44,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'elixir',
\ 'name': 'elixir'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -21,6 +21,9 @@ endif
let s:check_file = expand('<sfile>:p:h') . '/erlang_check_file.erl'
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_erlang_escript_GetLocList() dict
if expand('%:e') ==# 'hrl'
return []
@ -51,3 +54,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'erlang',
\ 'name': 'escript'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,12 +13,15 @@
if exists("g:loaded_syntastic_eruby_ruby_checker")
finish
endif
let g:loaded_syntastic_eruby_ruby_checker=1
let g:loaded_syntastic_eruby_ruby_checker = 1
if !exists("g:syntastic_ruby_exec")
let g:syntastic_ruby_exec = "ruby"
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_eruby_ruby_IsAvailable() dict
return executable(expand(g:syntastic_ruby_exec))
endfunction
@ -63,3 +66,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'eruby',
\ 'name': 'ruby'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_fortran_compiler')
let g:syntastic_fortran_compiler = 'gfortran'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_fortran_gfortran_IsAvailable() dict
return executable(expand(g:syntastic_fortran_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_fortran_compiler_options')
let g:syntastic_fortran_compiler_options = ''
endif

View File

@ -13,7 +13,6 @@
if exists("g:loaded_syntastic_glsl_cgc_checker")
finish
endif
let g:loaded_syntastic_glsl_cgc_checker = 1
let s:glsl_extensions = {

View File

@ -12,10 +12,14 @@
" Use a BufWritePre autocommand to that end:
" autocmd FileType go autocmd BufWritePre <buffer> Fmt
"============================================================================
if exists("g:loaded_syntastic_go_go_checker")
finish
endif
let g:loaded_syntastic_go_go_checker=1
let g:loaded_syntastic_go_go_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_go_go_IsAvailable() dict
return executable('go') && executable('gofmt')
@ -72,3 +76,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go',
\ 'name': 'go'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -12,10 +12,14 @@
" Use a BufWritePre autocommand to that end:
" autocmd FileType go autocmd BufWritePre <buffer> Fmt
"============================================================================
if exists("g:loaded_syntastic_go_gofmt_checker")
finish
endif
let g:loaded_syntastic_go_gofmt_checker=1
let g:loaded_syntastic_go_gofmt_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_go_gofmt_GetLocList() dict
let makeprg = self.makeprgBuild({
@ -33,3 +37,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go',
\ 'name': 'gofmt'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_go_golint_checker")
finish
endif
let g:loaded_syntastic_go_golint_checker=1
let g:loaded_syntastic_go_golint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_go_golint_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -28,3 +32,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go',
\ 'name': 'golint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,6 +9,7 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_go_gotype_checker")
finish
endif

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_go_govet_checker")
finish
endif
let g:loaded_syntastic_go_govet_checker=1
let g:loaded_syntastic_go_govet_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_go_govet_IsAvailable() dict
return executable('go')
@ -38,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go',
\ 'name': 'govet'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,12 +13,15 @@
if exists('g:loaded_syntastic_haml_haml_checker')
finish
endif
let g:loaded_syntastic_haml_haml_checker=1
let g:loaded_syntastic_haml_haml_checker = 1
if !exists('g:syntastic_haml_interpreter')
let g:syntastic_haml_interpreter = 'haml'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haml_haml_IsAvailable() dict
return executable(expand(g:syntastic_haml_interpreter))
endfunction
@ -41,3 +44,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haml',
\ 'name': 'haml'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,10 +8,14 @@
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================
if exists("g:loaded_syntastic_handlebars_handlebars_checker")
finish
endif
let g:loaded_syntastic_handlebars_handlebars_checker=1
let g:loaded_syntastic_handlebars_handlebars_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_handlebars_handlebars_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-f ' . syntastic#util#DevNull() })
@ -31,3 +35,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'handlebars',
\ 'name': 'handlebars'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -17,6 +17,9 @@ let g:loaded_syntastic_haskell_ghc_mod_checker = 1
let s:ghc_mod_new = -1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haskell_ghc_mod_IsAvailable() dict
" We need either a Vim version that can handle NULs in system() output,
" or a ghc-mod version that has the --boundary option.
@ -59,4 +62,9 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haskell',
\ 'name': 'ghc_mod',
\ 'exec': 'ghc-mod'})
\ 'exec': 'ghc-mod' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_haskell_hdevtools_checker")
finish
endif
let g:loaded_syntastic_haskell_hdevtools_checker=1
let g:loaded_syntastic_haskell_hdevtools_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haskell_hdevtools_GetLocList() dict
let makeprg = self.makeprgBuild({
@ -39,3 +42,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haskell',
\ 'name': 'hdevtools'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,6 +10,9 @@ if exists('g:loaded_syntastic_haskell_hlint_checker')
endif
let g:loaded_syntastic_haskell_hlint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haskell_hlint_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -27,3 +30,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haskell',
\ 'name': 'hlint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_haxe_haxe_checker")
finish
endif
let g:loaded_syntastic_haxe_haxe_checker=1
let g:loaded_syntastic_haxe_haxe_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haxe_haxe_GetLocList() dict
if exists('b:vaxe_hxml')
@ -43,3 +46,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haxe',
\ 'name': 'haxe'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_hss_hss_checker")
finish
endif
let g:loaded_syntastic_hss_hss_checker=1
let g:loaded_syntastic_hss_hss_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_hss_hss_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args' : '-output ' . syntastic#util#DevNull() })
@ -28,3 +31,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'hss',
\ 'name': 'hss'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -42,6 +42,9 @@ if !exists('g:syntastic_html_tidy_empty_tags')
let g:syntastic_html_tidy_empty_tags = []
endif
let s:save_cpo = &cpo
set cpo&vim
" TODO: join this with xhtml.vim for DRY's sake?
function! s:TidyEncOptByFenc()
let tidy_opts = {
@ -200,3 +203,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'html',
\ 'name': 'tidy'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -45,6 +45,9 @@ if !exists('g:syntastic_html_validator_nsfilter')
let g:syntastic_html_validator_nsfilter = ''
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_html_validator_Preprocess(errors)
let out = []
for e in a:errors
@ -92,3 +95,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'html',
\ 'name': 'validator',
\ 'exec': 'curl' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -26,6 +26,9 @@ if !exists('g:syntastic_html_w3_api')
let g:syntastic_html_w3_api = 'http://validator.w3.org/check'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_html_w3_GetLocList() dict
let makeprg = self.getExec() . ' -s -F output=json ' .
\ '-F uploaded_file=@' . syntastic#util#shexpand('%:p') . '\;type=text/html ' .
@ -60,3 +63,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'name': 'w3',
\ 'exec': 'curl' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,10 +10,11 @@
"
" Tested with checkstyle 5.5
"============================================================================
if exists("g:loaded_syntastic_java_checkstyle_checker")
finish
endif
let g:loaded_syntastic_java_checkstyle_checker=1
let g:loaded_syntastic_java_checkstyle_checker = 1
if !exists("g:syntastic_java_checkstyle_classpath")
let g:syntastic_java_checkstyle_classpath = 'checkstyle-5.5-all.jar'
@ -23,6 +24,9 @@ if !exists("g:syntastic_java_checkstyle_conf_file")
let g:syntastic_java_checkstyle_conf_file = 'sun_checks.xml'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_java_checkstyle_Preprocess(errors)
let out = copy(a:errors)
for n in range(len(out))
@ -71,3 +75,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'java',
\ 'name': 'checkstyle',
\ 'exec': 'java'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -40,6 +40,9 @@ if !exists("g:syntastic_java_javac_delete_output")
let g:syntastic_java_javac_delete_output = 1
endif
let s:save_cpo = &cpo
set cpo&vim
function! s:CygwinPath(path)
return substitute(system("cygpath -m " . a:path), '\n', '', 'g')
endfunction
@ -363,3 +366,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'java',
\ 'name': 'javac'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -24,14 +24,20 @@
if exists("g:loaded_syntastic_javascript_closurecompiler_checker")
finish
endif
let g:loaded_syntastic_javascript_closurecompiler_checker=1
let g:loaded_syntastic_javascript_closurecompiler_checker = 1
if !exists("g:syntastic_javascript_closure_compiler_options")
let g:syntastic_javascript_closure_compiler_options = ""
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_closurecompiler_IsAvailable() dict
return executable("java") && exists("g:syntastic_javascript_closure_compiler_path")
return
\ executable("java") &&
\ exists("g:syntastic_javascript_closure_compiler_path") &&
\ filereadable(g:syntastic_javascript_closure_compiler_path)
endfunction
function! SyntaxCheckers_javascript_closurecompiler_GetLocList() dict
@ -63,3 +69,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'name': 'closurecompiler',
\ 'exec': 'java'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -12,12 +12,15 @@
if exists('g:loaded_syntastic_javascript_eslint_checker')
finish
endif
let g:loaded_syntastic_javascript_eslint_checker=1
let g:loaded_syntastic_javascript_eslint_checker = 1
if !exists('g:syntastic_javascript_eslint_conf')
let g:syntastic_javascript_eslint_conf = ''
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_eslint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': !empty(g:syntastic_javascript_eslint_conf) ? ' --config ' . g:syntastic_javascript_eslint_conf : '' })
@ -41,3 +44,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript',
\ 'name': 'eslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,15 +8,19 @@
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================
if exists("g:loaded_syntastic_javascript_gjslint_checker")
finish
endif
let g:loaded_syntastic_javascript_gjslint_checker=1
let g:loaded_syntastic_javascript_gjslint_checker = 1
if !exists("g:syntastic_javascript_gjslint_conf")
let g:syntastic_javascript_gjslint_conf = ""
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_gjslint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': g:syntastic_javascript_gjslint_conf . " --nosummary --unix_mode --nodebug_indentation --nobeep" })
@ -37,3 +41,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript',
\ 'name': 'gjslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -12,7 +12,7 @@
if exists('g:loaded_syntastic_javascript_jshint_checker')
finish
endif
let g:loaded_syntastic_javascript_jshint_checker=1
let g:loaded_syntastic_javascript_jshint_checker = 1
if !exists('g:syntastic_jshint_exec')
let g:syntastic_jshint_exec = 'jshint'
@ -22,6 +22,9 @@ if !exists('g:syntastic_javascript_jshint_conf')
let g:syntastic_javascript_jshint_conf = ''
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_jshint_IsAvailable() dict
return executable(expand(g:syntastic_jshint_exec))
endfunction
@ -55,3 +58,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript',
\ 'name': 'jshint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,15 +8,19 @@
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================
if exists("g:loaded_syntastic_javascript_jsl_checker")
finish
endif
let g:loaded_syntastic_javascript_jsl_checker=1
let g:loaded_syntastic_javascript_jsl_checker = 1
if !exists("g:syntastic_javascript_jsl_conf")
let g:syntastic_javascript_jsl_conf = ""
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_jsl_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args': (!empty(g:syntastic_javascript_jsl_conf) ? "-conf " . g:syntastic_javascript_jsl_conf : "") .
@ -40,3 +44,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript',
\ 'name': 'jsl'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,11 @@
if exists("g:loaded_syntastic_javascript_jslint_checker")
finish
endif
let g:loaded_syntastic_javascript_jslint_checker=1
let g:loaded_syntastic_javascript_jslint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_jslint_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\mExpected .* and instead saw ''\zs.*\ze''')
@ -41,3 +45,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript',
\ 'name': 'jslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -12,7 +12,10 @@
if exists("g:loaded_syntastic_json_jsonlint_checker")
finish
endif
let g:loaded_syntastic_json_jsonlint_checker=1
let g:loaded_syntastic_json_jsonlint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_json_jsonlint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'post_args': '--compact' })
@ -33,3 +36,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'json',
\ 'name': 'jsonlint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -12,7 +12,10 @@
if exists("g:loaded_syntastic_json_jsonval_checker")
finish
endif
let g:loaded_syntastic_json_jsonval_checker=1
let g:loaded_syntastic_json_jsonval_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_json_jsonval_GetLocList() dict
" based on https://gist.github.com/1196345
@ -31,3 +34,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'json',
\ 'name': 'jsonval'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -20,7 +20,7 @@
if exists("g:loaded_syntastic_less_lessc_checker")
finish
endif
let g:loaded_syntastic_less_lessc_checker=1
let g:loaded_syntastic_less_lessc_checker = 1
if !exists("g:syntastic_less_options")
let g:syntastic_less_options = "--no-color"
@ -36,6 +36,9 @@ else
let s:check_file = 'lessc'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_less_lessc_IsAvailable() dict
return g:syntastic_less_use_less_lint ? executable('node') : executable('lessc')
endfunction
@ -60,3 +63,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'less',
\ 'name': 'lessc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -46,3 +46,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_limbo_limbo_checker")
endif
let g:loaded_syntastic_limbo_limbo_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_limbo_limbo_GetLocList() dict
let include = !empty($INFERNO_HOME) ? '-I$INFERNO_HOME ' : ''
" don't generate .dis in current dir while checking syntax,
@ -36,3 +39,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'limbo',
\ 'name': 'limbo' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_lisp_clisp_checker")
finish
endif
let g:loaded_syntastic_lisp_clisp_checker=1
let g:loaded_syntastic_lisp_clisp_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_lisp_clisp_GetLocList() dict
let makeprg = self.makeprgBuild({
@ -38,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'lisp',
\ 'name': 'clisp'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_llvm_llvm_checker")
finish
endif
let g:loaded_syntastic_llvm_llvm_checker=1
let g:loaded_syntastic_llvm_llvm_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_llvm_llvm_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() })
@ -29,3 +33,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'name': 'llvm',
\ 'exec': 'llc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_lua_luac_checker")
finish
endif
let g:loaded_syntastic_lua_luac_checker=1
let g:loaded_syntastic_lua_luac_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_lua_luac_GetHighlightRegex(pos)
let result = ''
@ -55,3 +58,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'lua',
\ 'name': 'luac'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_matlab_mlint_checker")
finish
endif
let g:loaded_syntastic_matlab_mlint_checker=1
let g:loaded_syntastic_matlab_mlint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_matlab_mlint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-id $*' })
@ -31,3 +34,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'matlab',
\ 'name': 'mlint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_nasm_nasm_checker")
finish
endif
let g:loaded_syntastic_nasm_nasm_checker=1
let g:loaded_syntastic_nasm_nasm_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_nasm_nasm_GetLocList() dict
let wd = syntastic#util#shescape(expand("%:p:h") . "/")
@ -31,3 +35,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'nasm',
\ 'name': 'nasm'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_nroff_mandoc_checker")
finish
endif
let g:loaded_syntastic_nroff_mandoc_checker=1
let g:loaded_syntastic_nroff_mandoc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_nroff_mandoc_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-Tlint' })
@ -31,3 +35,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'nroff',
\ 'name': 'mandoc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_objc_compiler')
let g:syntastic_objc_compiler = executable('gcc') ? 'gcc' : 'clang'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_objc_gcc_IsAvailable() dict
return executable(expand(g:syntastic_objc_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_objc_compiler_options')
let g:syntastic_objc_compiler_options = '-std=gnu99'
endif

View File

@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objc',
\ 'name': 'oclint',
\ 'redirect': 'c/oclint'})
" vim: set et sts=4 sw=4:

View File

@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objc',
\ 'name': 'ycm',
\ 'redirect': 'c/ycm'})
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_objcpp_compiler')
let g:syntastic_objcpp_compiler = executable('gcc') ? 'gcc' : 'clang'
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict
return executable(expand(g:syntastic_objcpp_compiler))
endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_objcpp_compiler_options')
let g:syntastic_objcpp_compiler_options = '-std=gnu99'
endif

View File

@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objcpp',
\ 'name': 'oclint',
\ 'redirect': 'c/oclint'})
" vim: set et sts=4 sw=4:

View File

@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objcpp',
\ 'name': 'ycm',
\ 'redirect': 'c/ycm'})
" vim: set et sts=4 sw=4:

View File

@ -51,7 +51,7 @@
if exists("g:loaded_syntastic_ocaml_camlp4o_checker")
finish
endif
let g:loaded_syntastic_ocaml_camlp4o_checker=1
let g:loaded_syntastic_ocaml_camlp4o_checker = 1
if exists('g:syntastic_ocaml_camlp4r') && g:syntastic_ocaml_camlp4r != 0
let s:ocamlpp="camlp4r"
@ -59,6 +59,9 @@ else
let s:ocamlpp="camlp4o"
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_ocaml_camlp4o_IsAvailable() dict
return executable(s:ocamlpp)
endfunction
@ -146,3 +149,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ocaml',
\ 'name': 'camlp4o'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -34,6 +34,9 @@ if !exists('g:syntastic_perl_lib_path')
let g:syntastic_perl_lib_path = []
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_perl_perl_IsAvailable() dict
" don't call executable() here, to allow things like
" let g:syntastic_perl_interpreter='/usr/bin/env perl'
@ -95,3 +98,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'perl',
\ 'name': 'perl'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -27,12 +27,15 @@
if exists("g:loaded_syntastic_perl_perlcritic_checker")
finish
endif
let g:loaded_syntastic_perl_perlcritic_checker=1
let g:loaded_syntastic_perl_perlcritic_checker = 1
if !exists('g:syntastic_perl_perlcritic_thres')
let g:syntastic_perl_perlcritic_thres = 5
endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_perl_perlcritic_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'post_args': '--quiet --nocolor --verbose "\%s:\%f:\%l:\%c:(\%s) \%m (\%e)\n"' })
@ -56,3 +59,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'perl',
\ 'name': 'perlcritic'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,7 @@
if exists("g:loaded_syntastic_perl_podchecker_checker")
finish
endif
let g:loaded_syntastic_perl_podchecker_checker=1
let g:loaded_syntastic_perl_podchecker_checker = 1
runtime! syntax_checkers/pod/*.vim
@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'perl',
\ 'name': 'podchecker',
\ 'redirect': 'pod/podchecker'})
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_php_php_checker")
finish
endif
let g:loaded_syntastic_php_php_checker=1
let g:loaded_syntastic_php_php_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_php_php_GetHighlightRegex(item)
let unexpected = matchstr(a:item['text'], "\\munexpected '[^']\\+'")
@ -42,4 +45,9 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'php',
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:
\ 'name': 'php'})

View File

@ -12,11 +12,14 @@
"
" See here for details of phpcs
" - phpcs (see http://pear.php.net/package/PHP_CodeSniffer)
"
if exists("g:loaded_syntastic_php_phpcs_checker")
finish
endif
let g:loaded_syntastic_php_phpcs_checker=1
let g:loaded_syntastic_php_phpcs_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_php_phpcs_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--report=csv' })
@ -34,3 +37,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'php',
\ 'name': 'phpcs'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -16,7 +16,10 @@
if exists("g:loaded_syntastic_php_phpmd_checker")
finish
endif
let g:loaded_syntastic_php_phpmd_checker=1
let g:loaded_syntastic_php_phpmd_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_php_phpmd_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\m\C^The \S\+ \w\+\(()\)\= \(has\|is not\|utilizes\)')
@ -68,3 +71,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'php',
\ 'name': 'phpmd'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,8 +13,10 @@
if exists("g:loaded_syntastic_po_msgfmt_checker")
finish
endif
let g:loaded_syntastic_po_msgfmt_checker=1
let g:loaded_syntastic_po_msgfmt_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_po_msgfmt_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\mkeyword "\zs[^"]\+\ze" unknown')
@ -41,3 +43,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'po',
\ 'name': 'msgfmt'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,10 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists("g:loaded_syntastic_pod_podchecker_checker")
finish
endif
let g:loaded_syntastic_pod_podchecker_checker=1
let g:loaded_syntastic_pod_podchecker_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_pod_podchecker_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -41,3 +45,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'pod',
\ 'name': 'podchecker'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_puppet_puppet_checker")
finish
endif
let g:loaded_syntastic_puppet_puppet_checker=1
let g:loaded_syntastic_puppet_puppet_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_puppet_puppet_GetLocList() dict
let ver = syntastic#util#getVersion(self.getExec() . ' --version 2>' . syntastic#util#DevNull())
@ -40,3 +43,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'puppet',
\ 'name': 'puppet'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,7 +13,10 @@
if exists("g:loaded_syntastic_puppet_puppetlint_checker")
finish
endif
let g:loaded_syntastic_puppet_puppetlint_checker=1
let g:loaded_syntastic_puppet_puppetlint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
if exists("g:syntastic_puppet_lint_arguments")
let g:syntastic_puppet_puppetlint_args = g:syntastic_puppet_lint_arguments
@ -44,3 +47,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'puppet',
\ 'name': 'puppetlint',
\ 'exec': 'puppet-lint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -5,13 +5,17 @@
" kstep <me@kstep.me>
"
"============================================================================
if exists("g:loaded_syntastic_python_flake8_checker")
finish
endif
let g:loaded_syntastic_python_flake8_checker=1
let g:loaded_syntastic_python_flake8_checker = 1
function! SyntaxCheckers_python_flake8_GetHighlightRegex(i)
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:i)
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_flake8_GetHighlightRegex(item)
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:item)
endfunction
function! SyntaxCheckers_python_flake8_GetLocList() dict
@ -35,3 +39,8 @@ runtime! syntax_checkers/python/pyflakes.vim
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'flake8'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,6 +10,9 @@ if exists("g:loaded_syntastic_python_pep257_checker")
endif
let g:loaded_syntastic_python_pep257_checker = 1
let s:save_cpo = &cpo
set cpo&vim
" sanity: kill empty lines here rather than munging errorformat
function! SyntaxCheckers_python_pep257_Preprocess(errors)
return filter(copy(a:errors), 'v:val != ""')
@ -41,3 +44,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'pep257'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,7 +15,10 @@
if exists("g:loaded_syntastic_python_pep8_checker")
finish
endif
let g:loaded_syntastic_python_pep8_checker=1
let g:loaded_syntastic_python_pep8_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_pep8_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -37,3 +40,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'pep8'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -4,10 +4,14 @@
"Authors: Liam Curry <liam@curry.name>
"
"============================================================================
if exists("g:loaded_syntastic_python_py3kwarn_checker")
finish
endif
let g:loaded_syntastic_python_py3kwarn_checker=1
let g:loaded_syntastic_python_py3kwarn_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -22,3 +26,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'py3kwarn'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -6,11 +6,15 @@
" Parantapa Bhattacharya <parantapa@gmail.com>
"
"============================================================================
if exists("g:loaded_syntastic_python_pyflakes_checker")
finish
endif
let g:loaded_syntastic_python_pyflakes_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_pyflakes_GetHighlightRegex(i)
if stridx(a:i['text'], 'is assigned to but never used') >= 0
\ || stridx(a:i['text'], 'imported but unused') >= 0
@ -54,3 +58,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'pyflakes'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,13 +9,17 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists('g:loaded_syntastic_python_pylama_checker')
finish
endif
let g:loaded_syntastic_python_pylama_checker = 1
function! SyntaxCheckers_python_pylama_GetHighlightRegex(i)
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:i)
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_pylama_GetHighlightRegex(item)
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:item)
endfunction
function! SyntaxCheckers_python_pylama_GetLocList() dict
@ -57,3 +61,8 @@ runtime! syntax_checkers/python/pyflakes.vim
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'pylama' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -4,6 +4,7 @@
"Author: Parantapa Bhattacharya <parantapa at gmail dot com>
"
"============================================================================
if exists("g:loaded_syntastic_python_pylint_checker")
finish
endif
@ -11,6 +12,9 @@ let g:loaded_syntastic_python_pylint_checker = 1
let s:pylint_new = -1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_pylint_IsAvailable() dict
let exe = self.getExec()
let s:pylint_new = executable(exe) ? s:PylintNew(exe) : -1
@ -65,3 +69,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'pylint' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -7,10 +7,14 @@
" http://www.vim.org/scripts/download_script.php?src_id=1392
"
"============================================================================
if exists("g:loaded_syntastic_python_python_checker")
finish
endif
let g:loaded_syntastic_python_python_checker=1
let g:loaded_syntastic_python_python_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_python_GetLocList() dict
let fname = "'" . escape(expand('%'), "\\'") . "'"
@ -34,3 +38,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'python'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,8 +19,6 @@ let g:loaded_syntastic_racket_racket_checker=1
let s:save_cpo = &cpo
set cpo&vim
" at some point put in the GetHightlightRegex(item) callback
function! SyntaxCheckers_racket_racket_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -48,3 +46,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -16,15 +16,15 @@
if exists("g:loaded_syntastic_rst_rst2pseudoxml_checker")
finish
endif
let g:loaded_syntastic_rst_rst2pseudoxml_checker=1
let g:loaded_syntastic_rst_rst2pseudoxml_checker = 1
function! SyntaxCheckers_rst_rst2pseudoxml_IsAvailable() dict
return executable(s:exe())
endfunction
let s:rst2pseudoxml = executable('rst2pseudoxml.py') ? 'rst2pseudoxml.py' : 'rst2pseudoxml'
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'exe': s:exe(),
\ 'args': '--report=2 --exit-status=1',
\ 'tail': syntastic#util#DevNull() })
@ -51,10 +51,12 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
return loclist
endfunction
function! s:exe()
return executable("rst2pseudoxml.py") ? "rst2pseudoxml.py" : "rst2pseudoxml"
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'rst',
\ 'name': 'rst2pseudoxml'})
\ 'name': 'rst2pseudoxml',
\ 'exec': s:rst2pseudoxml })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -5,15 +5,13 @@
"
"============================================================================
" https://github.com/myint/rstcheck
"
" To install rstcheck:
" $ pip install --upgrade rstcheck
if exists("g:loaded_syntastic_rst_rstcheck_checker")
finish
endif
let g:loaded_syntastic_rst_rstcheck_checker=1
let g:loaded_syntastic_rst_rstcheck_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_rst_rstcheck_GetLocList() dict
let makeprg = self.makeprgBuild({})
@ -44,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'rst',
\ 'name': 'rstcheck'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

Some files were not shown because too many files have changed in this diff Show More