├── .gitignore ├── CONTRIBUTING.md ├── LICENCE ├── README.markdown ├── _assets └── screenshot_1.png ├── autoload └── syntastic │ ├── c.vim │ ├── log.vim │ ├── postprocess.vim │ ├── preprocess.vim │ └── util.vim ├── doc ├── syntastic-checkers.txt └── syntastic.txt ├── plugin ├── syntastic.vim └── syntastic │ ├── autoloclist.vim │ ├── balloons.vim │ ├── checker.vim │ ├── cursor.vim │ ├── highlighting.vim │ ├── loclist.vim │ ├── modemap.vim │ ├── notifiers.vim │ ├── registry.vim │ └── signs.vim └── syntax_checkers ├── actionscript └── mxmlc.vim ├── ada └── gcc.vim ├── ansible └── ansible_lint.vim ├── apiblueprint └── drafter.vim ├── applescript └── osacompile.vim ├── asciidoc ├── asciidoc.vim └── proselint.vim ├── asl └── iasl.vim ├── asm └── gcc.vim ├── bemhtml └── bemhtmllint.vim ├── bro └── bro.vim ├── c ├── avrgcc.vim ├── checkpatch.vim ├── clang_check.vim ├── clang_tidy.vim ├── cppcheck.vim ├── cppclean.vim ├── flawfinder.vim ├── gcc.vim ├── make.vim ├── oclint.vim ├── pc_lint.vim ├── sparse.vim └── splint.vim ├── cabal └── cabal.vim ├── chef └── foodcritic.vim ├── cmake └── cmakelint.vim ├── co └── coco.vim ├── cobol └── cobc.vim ├── coffee ├── coffee.vim ├── coffee_jshint.vim └── coffeelint.vim ├── coq └── coqtop.vim ├── cpp ├── avrgcc.vim ├── clang_check.vim ├── clang_tidy.vim ├── cppcheck.vim ├── cppclean.vim ├── cpplint.vim ├── flawfinder.vim ├── gcc.vim ├── oclint.vim ├── pc_lint.vim └── verapp.vim ├── cs └── mcs.vim ├── css ├── csslint.vim ├── mixedindentlint.vim ├── phpcs.vim ├── prettycss.vim ├── recess.vim └── stylelint.vim ├── cucumber └── cucumber.vim ├── cuda └── nvcc.vim ├── d ├── dmd.vim └── dscanner.vim ├── dart └── dartanalyzer.vim ├── docbk ├── igor.vim └── xmllint.vim ├── dockerfile ├── dockerfile_lint.vim └── hadolint.vim ├── dustjs └── swiffer.vim ├── elixir └── elixir.vim ├── erlang ├── erlang_check_file.erl ├── escript.vim └── syntaxerl.vim ├── eruby └── ruby.vim ├── fortran └── gfortran.vim ├── glsl └── cgc.vim ├── go ├── go.vim ├── gofmt.vim ├── golangci_lint.vim ├── golint.vim ├── gometalinter.vim ├── gotype.vim └── govet.vim ├── haml ├── haml.vim └── haml_lint.vim ├── handlebars └── handlebars.vim ├── haskell ├── hdevtools.vim ├── hlint.vim └── scan.vim ├── haxe └── haxe.vim ├── help └── proselint.vim ├── hss └── hss.vim ├── html ├── eslint.vim ├── gjslint.vim ├── htmlhint.vim ├── jshint.vim ├── proselint.vim ├── stylelint.vim ├── textlint.vim ├── tidy.vim ├── validator.vim └── w3.vim ├── jade └── jade_lint.vim ├── java ├── checkstyle.vim └── javac.vim ├── javascript ├── closurecompiler.vim ├── eslint.vim ├── flow.vim ├── gjslint.vim ├── jscs.vim ├── jshint.vim ├── jsl.vim ├── jslint.vim ├── jsxhint.vim ├── lynt.vim ├── mixedindentlint.vim ├── standard.vim └── tern_lint.vim ├── json ├── jsonlint.vim └── jsonval.vim ├── less ├── less-lint.coffee ├── less-lint.js ├── lessc.vim └── recess.vim ├── lex └── flex.vim ├── limbo └── limbo.vim ├── lisp └── clisp.vim ├── llvm └── llvm.vim ├── lua ├── luac.vim └── luacheck.vim ├── markdown ├── mdl.vim ├── proselint.vim ├── remark_lint.vim └── textlint.vim ├── matlab └── mlint.vim ├── mercury └── mmc.vim ├── nasm └── nasm.vim ├── nix └── nix.vim ├── nroff ├── igor.vim ├── mandoc.vim └── proselint.vim ├── objc ├── gcc.vim └── oclint.vim ├── objcpp ├── gcc.vim └── oclint.vim ├── ocaml └── camlp4o.vim ├── perl ├── perl.vim ├── perlcritic.vim └── podchecker.vim ├── perl6 └── perl6.vim ├── php ├── php.vim ├── phpcs.vim ├── phplint.vim ├── phpmd.vim └── phpstan.vim ├── po ├── dennis.vim └── msgfmt.vim ├── pod ├── podchecker.vim └── proselint.vim ├── pug └── pug_lint.vim ├── puppet ├── puppet.vim └── puppetlint.vim ├── python ├── bandit.vim ├── codec.py ├── compile.py ├── flake8.vim ├── frosted.vim ├── mypy.vim ├── pep257.vim ├── pep8.vim ├── prospector.vim ├── py3kwarn.vim ├── pycodestyle.vim ├── pydocstyle.vim ├── pyflakes.vim ├── pylama.vim ├── pylint.vim └── python.vim ├── qml └── qmllint.vim ├── r ├── lint.vim ├── lintr.vim └── svtools.vim ├── racket ├── code-ayatollah.vim └── racket.vim ├── raku └── raku.vim ├── rmd └── lintr.vim ├── rnc └── rnv.vim ├── rst ├── proselint.vim ├── rst2pseudoxml.vim ├── rstcheck.vim └── sphinx.vim ├── ruby ├── flog.vim ├── jruby.vim ├── macruby.vim ├── mri.vim ├── reek.vim ├── rubocop.vim ├── rubylint.vim └── sorbet.vim ├── sass ├── sass.vim ├── sass_lint.vim └── sassc.vim ├── scala ├── fsc.vim ├── scalac.vim └── scalastyle.vim ├── scss ├── mixedindentlint.vim ├── sass.vim ├── sass_lint.vim ├── sassc.vim └── scss_lint.vim ├── sh ├── bashate.vim ├── checkbashisms.vim ├── sh.vim ├── shellcheck.vim └── shfmt.vim ├── slim ├── slim_lint.vim └── slimrb.vim ├── sml └── smlnj.vim ├── solidity ├── solc.vim ├── solhint.vim └── solium.vim ├── spec └── rpmlint.vim ├── sql ├── sqlint.vim └── tsqllint.vim ├── stylus └── stylint.vim ├── svg ├── validator.vim └── w3.vim ├── tcl └── nagelfar.vim ├── tex ├── chktex.vim ├── lacheck.vim └── proselint.vim ├── texinfo ├── makeinfo.vim └── proselint.vim ├── text ├── atdtool.vim ├── igor.vim ├── language_check.vim ├── proselint.vim └── textlint.vim ├── trig └── rapper.vim ├── turtle ├── rapper.vim └── ttl.vim ├── twig ├── twigcs.vim └── twiglint.vim ├── typescript ├── eslint.vim ├── lynt.vim └── tslint.vim ├── verilog ├── iverilog.vim └── verilator.vim ├── vhdl ├── ghdl.vim └── vcom.vim ├── vim ├── vimlint.vim └── vint.vim ├── vue ├── eslint.vim ├── pug_lint_vue.vim └── stylelint.vim ├── xhtml ├── jshint.vim ├── proselint.vim ├── tidy.vim ├── validator.vim └── w3.vim ├── xml ├── plutil.vim └── xmllint.vim ├── xquery └── basex.vim ├── xslt └── xmllint.vim ├── yacc └── bison.vim ├── yaml ├── jsyaml.vim ├── yamllint.vim └── yamlxs.vim ├── yang └── pyang.vim ├── yara └── yara.vim ├── z80 └── z80syntaxchecker.vim ├── zpt └── zptlint.vim └── zsh └── zsh.vim /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.swp 3 | tags 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2004 Sam Hocevar 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | -------------------------------------------------------------------------------- /_assets/screenshot_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vim-syntastic/syntastic/8d5e37c29cf5952fbf300b9230bffe424c61a488/_assets/screenshot_1.png -------------------------------------------------------------------------------- /syntax_checkers/ada/gcc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: ada.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Alfredo Di Napoli 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. 7 | " 8 | "============================================================================ 9 | 10 | if exists('g:loaded_syntastic_ada_gcc_checker') 11 | finish 12 | endif 13 | let g:loaded_syntastic_ada_gcc_checker = 1 14 | 15 | if !exists('g:syntastic_ada_compiler_options') 16 | let g:syntastic_ada_compiler_options = '' 17 | endif 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_ada_gcc_IsAvailable() dict 23 | if !exists('g:syntastic_ada_compiler') 24 | let g:syntastic_ada_compiler = self.getExec() 25 | endif 26 | return executable(expand(g:syntastic_ada_compiler, 1)) 27 | endfunction 28 | 29 | function! SyntaxCheckers_ada_gcc_GetLocList() dict 30 | return syntastic#c#GetLocList('ada', 'gcc', { 31 | \ 'errorformat': 32 | \ '%-G%f:%s:,' . 33 | \ '%f:%l:%c: %m,' . 34 | \ '%f:%l: %m', 35 | \ 'main_flags': '-c -x ada -gnats -gnatef', 36 | \ 'header_flags': '-S -x ada -gnats -gnatef', 37 | \ 'header_names': '\.ads$' }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'ada', 42 | \ 'name': 'gcc' }) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | -------------------------------------------------------------------------------- /syntax_checkers/asciidoc/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_asciidoc_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_asciidoc_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'asciidoc', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/bemhtml/bemhtmllint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: bemhtmllint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Sergej Tatarincev 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_bemhtml_bemhtmllint_checker') 13 | finish 14 | endif 15 | 16 | let g:loaded_syntastic_bemhtml_bemhtmllint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function SyntaxCheckers_bemhtml_bemhtmllint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | let errorformat = '%f:%l:%c: %m' 24 | return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) 25 | endfunction 26 | 27 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 28 | \ 'filetype': 'bemhtml', 29 | \ 'name': 'bemhtmllint', 30 | \ 'exec': 'bemhtml-lint' }) 31 | 32 | let &cpo = s:save_cpo 33 | unlet s:save_cpo 34 | 35 | " vim: set sw=4 sts=4 et fdm=marker: 36 | -------------------------------------------------------------------------------- /syntax_checkers/c/cppclean.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cppclean.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_c_cppclean_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_c_cppclean_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_c_cppclean_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = '%f:%l: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat, 29 | \ 'subtype': 'Style', 30 | \ 'returns': [0, 1] }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'c', 35 | \ 'name': 'cppclean' }) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/c/sparse.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: sparse.vim 3 | "Description: Syntax checking plugin for syntastic using sparse.pl 4 | "Maintainer: Daniel Walker 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_c_sparse_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_c_sparse_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_c_sparse_GetLocList() dict 21 | let buf = bufnr('') 22 | 23 | let makeprg = self.makeprgBuild({ 24 | \ 'args': syntastic#c#ReadConfig(syntastic#util#bufVar(buf, 'sparse_config_file')), 25 | \ 'args_after': '-ftabstop=' . &ts }) 26 | 27 | let errorformat = 28 | \ '%f:%l:%v: %trror: %m,' . 29 | \ '%f:%l:%v: %tarning: %m,' 30 | 31 | let loclist = SyntasticMake({ 32 | \ 'makeprg': makeprg, 33 | \ 'errorformat': errorformat, 34 | \ 'defaults': {'bufnr': bufnr('')}, 35 | \ 'returns': [0, 1] }) 36 | return loclist 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'c', 41 | \ 'name': 'sparse'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/chef/foodcritic.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: foodcritic.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Doug Ireton 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_chef_foodcritic_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_chef_foodcritic_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_chef_foodcritic_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | " FC023: Prefer conditional attributes: ./recipes/config.rb:49 25 | let errorformat = 'FC%n: %m: %f:%l' 26 | 27 | return SyntasticMake({ 28 | \ 'makeprg': makeprg, 29 | \ 'errorformat': errorformat }) 30 | endfunction 31 | 32 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 33 | \ 'filetype': 'chef', 34 | \ 'name': 'foodcritic'}) 35 | 36 | let &cpo = s:save_cpo 37 | unlet s:save_cpo 38 | 39 | " vim: set sw=4 sts=4 et fdm=marker: 40 | -------------------------------------------------------------------------------- /syntax_checkers/cmake/cmakelint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cmakelint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_cmake_cmakelint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_cmake_cmakelint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_cmake_cmakelint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = '%f:%l: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat, 29 | \ 'subtype': 'Style', 30 | \ 'returns': [0, 1] }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'cmake', 35 | \ 'name': 'cmakelint' }) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/co/coco.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: co.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Andrew Kelley 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_co_coco_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_co_coco_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_co_coco_GetLocList() dict 22 | let tmpdir = syntastic#util#tmpdir() 23 | let makeprg = self.makeprgBuild({ 'args_after': '-c -o ' . tmpdir }) 24 | 25 | let errorformat = 26 | \ '%EFailed at: %f,' . 27 | \ '%ZSyntax%trror: %m on line %l,'. 28 | \ '%EFailed at: %f,'. 29 | \ '%Z%trror: Parse error on line %l: %m' 30 | 31 | let loclist = SyntasticMake({ 32 | \ 'makeprg': makeprg, 33 | \ 'errorformat': errorformat }) 34 | 35 | call syntastic#util#rmrf(tmpdir) 36 | 37 | return loclist 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'co', 42 | \ 'name': 'coco'}) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | -------------------------------------------------------------------------------- /syntax_checkers/cobol/cobc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cobc.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | 14 | if exists('g:loaded_syntastic_cobol_cobc_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_cobol_cobc_checker = 1 18 | 19 | if !exists('g:syntastic_cobol_compiler_options') 20 | let g:syntastic_cobol_compiler_options = '' 21 | endif 22 | 23 | let s:save_cpo = &cpo 24 | set cpo&vim 25 | 26 | function! SyntaxCheckers_cobol_cobc_IsAvailable() dict 27 | if !exists('g:syntastic_cobol_compiler') 28 | let g:syntastic_cobol_compiler = self.getExec() 29 | endif 30 | call self.log('g:syntastic_cobol_compiler =', g:syntastic_cobol_compiler) 31 | return executable(expand(g:syntastic_cobol_compiler, 1)) 32 | endfunction 33 | 34 | function! SyntaxCheckers_cobol_cobc_GetLocList() dict 35 | return syntastic#c#GetLocList('cobol', 'cobc', { 36 | \ 'errorformat': '%f:%\s%#%l: %trror: %m', 37 | \ 'main_flags': '-fsyntax-only' }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'cobol', 42 | \ 'name': 'cobc' }) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | -------------------------------------------------------------------------------- /syntax_checkers/coffee/coffee_jshint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: coffee_jshint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: John Krauss 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_coffee_coffee_jshint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_coffee_coffee_jshint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_coffee_coffee_jshint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%Q-%\{32\,},' . 26 | \ '%E%l:%c: %m,' . 27 | \ '%P%f' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat, 32 | \ 'returns': [0, 1] }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'coffee', 37 | \ 'exec': 'coffee-jshint', 38 | \ 'name': 'coffee_jshint' }) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | 45 | -------------------------------------------------------------------------------- /syntax_checkers/coffee/coffeelint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: coffeelint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Lincoln Stoll 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_coffee_coffeelint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_coffee_coffeelint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_coffee_coffeelint_GetLocList() dict 22 | if !exists('s:coffeelint_new') 23 | let s:coffeelint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [1, 4]) 24 | endif 25 | let makeprg = self.makeprgBuild({ 'args_after': (s:coffeelint_new ? '--reporter csv' : '--csv') }) 26 | 27 | let errorformat = '%f:%l:%t:%m' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat, 32 | \ 'subtype': 'Style', 33 | \ 'returns': [0, 1], 34 | \ 'preprocess': 'coffeelint' }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'coffee', 39 | \ 'name': 'coffeelint'}) 40 | 41 | let &cpo = s:save_cpo 42 | unlet s:save_cpo 43 | 44 | " vim: set sw=4 sts=4 et fdm=marker: 45 | -------------------------------------------------------------------------------- /syntax_checkers/coq/coqtop.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: coqtop.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Matvey Aksenov 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_coq_coqtop_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_coq_coqtop_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_coq_coqtop_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-noglob -batch -load-vernac-source' }) 23 | 24 | let errorformat = 25 | \ '%AFile "%f"\, line %l\, characters %c-%.%#\:,'. 26 | \ '%C%m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'coq', 35 | \ 'name': 'coqtop'}) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/avrgcc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: avrgcc.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Sławek Piotrowski 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_cpp_avrgcc_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_cpp_avrgcc_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'cpp', 20 | \ 'name': 'avrgcc', 21 | \ 'exec': 'avr-g++', 22 | \ 'redirect': 'c/avrgcc'}) 23 | 24 | " vim: set sw=4 sts=4 et fdm=marker: 25 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/clang_check.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: clang_check.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Benjamin Bannier 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_cpp_clang_check_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_cpp_clang_check_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'cpp', 19 | \ 'name': 'clang_check', 20 | \ 'redirect': 'c/clang_check'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/clang_tidy.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: clang_tidy.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Benjamin Bannier 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_cpp_clang_tidy_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_cpp_clang_tidy_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'cpp', 19 | \ 'name': 'clang_tidy', 20 | \ 'redirect': 'c/clang_tidy'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/cppcheck.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cppcheck.vim 3 | "Description: Syntax checking plugin for syntastic using cppcheck.pl 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_cpp_cppcheck_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_cpp_cppcheck_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'cpp', 19 | \ 'name': 'cppcheck', 20 | \ 'redirect': 'c/cppcheck'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/cppclean.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cppclean.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Benjamin Bannier 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_cpp_cppclean_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_cpp_cppclean_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'cpp', 19 | \ 'name': 'cppclean', 20 | \ 'redirect': 'c/cppclean'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/cpplint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cpplint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_cpp_cpplint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_cpp_cpplint_checker = 1 17 | 18 | if !exists('g:syntastic_cpp_cpplint_thres') 19 | let g:syntastic_cpp_cpplint_thres = 5 20 | endif 21 | 22 | let s:save_cpo = &cpo 23 | set cpo&vim 24 | 25 | function! SyntaxCheckers_cpp_cpplint_GetLocList() dict 26 | let makeprg = self.makeprgBuild({ 'args': '--verbose=3' }) 27 | 28 | let errorformat = '%A%f:%l: %m [%t],%-G%.%#' 29 | 30 | let loclist = SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'subtype': 'Style', 34 | \ 'returns': [0, 1] }) 35 | 36 | " change error types according to the prescribed threshold 37 | for e in loclist 38 | let e['type'] = e['type'] < g:syntastic_cpp_cpplint_thres ? 'W' : 'E' 39 | endfor 40 | 41 | return loclist 42 | endfunction 43 | 44 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 45 | \ 'filetype': 'cpp', 46 | \ 'name': 'cpplint', 47 | \ 'exec': 'cpplint.py'}) 48 | 49 | let &cpo = s:save_cpo 50 | unlet s:save_cpo 51 | 52 | " vim: set sw=4 sts=4 et fdm=marker: 53 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/flawfinder.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: flawfinder.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Benjamin Bannier 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_cpp_flawfinder_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_cpp_flawfinder_checker = 1 16 | 17 | if !exists('g:syntastic_cpp_flawfinder_thres') 18 | let g:syntastic_cpp_flawfinder_thres = 3 19 | endif 20 | 21 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 22 | \ 'filetype': 'cpp', 23 | \ 'name': 'flawfinder', 24 | \ 'redirect': 'c/flawfinder'}) 25 | 26 | " vim: set sw=4 sts=4 et fdm=marker: 27 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/oclint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: oclint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: "UnCO" Lin 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_cpp_oclint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_cpp_oclint_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'cpp', 19 | \ 'name': 'oclint', 20 | \ 'redirect': 'c/oclint'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/pc_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pc_lint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Steve Bragg 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_cpp_pc_lint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_cpp_pc_lint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'cpp', 20 | \ 'name': 'pc_lint', 21 | \ 'redirect': 'c/pc_lint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/cpp/verapp.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: verapp.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Lucas Verney 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | " Tested with Vera++ 1.3.0 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_cpp_verapp_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_cpp_verapp_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_cpp_verapp_GetLocList() dict 23 | let buf = bufnr('') 24 | 25 | let makeprg = self.makeprgBuild({ 26 | \ 'args': syntastic#c#ReadConfig(syntastic#util#bufVar(buf, 'verapp_config_file')), 27 | \ 'args_after': '--show-rule --no-duplicate -S -c -' }) 28 | 29 | let errorformat = '%f:%t:%l:%c:%m' 30 | 31 | return SyntasticMake({ 32 | \ 'makeprg': makeprg, 33 | \ 'errorformat': errorformat, 34 | \ 'preprocess': 'checkstyle', 35 | \ 'subtype': 'Style' }) 36 | endfunction 37 | 38 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 39 | \ 'filetype': 'cpp', 40 | \ 'name': 'verapp', 41 | \ 'exec': 'vera++'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/cs/mcs.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cs.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Daniel Walker 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_cs_mcs_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_cs_mcs_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_cs_mcs_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '--parse' }) 23 | 24 | let errorformat = '%f(%l\,%c): %trror %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat, 29 | \ 'defaults': {'bufnr': bufnr('')} }) 30 | endfunction 31 | 32 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 33 | \ 'filetype': 'cs', 34 | \ 'name': 'mcs'}) 35 | 36 | let &cpo = s:save_cpo 37 | unlet s:save_cpo 38 | 39 | " vim: set sw=4 sts=4 et fdm=marker: 40 | -------------------------------------------------------------------------------- /syntax_checkers/css/mixedindentlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mixedindentlint.vim 3 | "Description: Mixed indentation linter for vim 4 | "Maintainer: Payton Swick 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_css_mixedindentlint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_css_mixedindentlint_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'css', 19 | \ 'name': 'mixedindentlint', 20 | \ 'redirect': 'javascript/mixedindentlint'}) 21 | 22 | " vim: set et sts=4 sw=4: 23 | -------------------------------------------------------------------------------- /syntax_checkers/css/phpcs.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: phpcs.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_css_phpcs_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_css_phpcs_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'css', 20 | \ 'name': 'phpcs', 21 | \ 'redirect': 'php/phpcs'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/css/recess.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: recess.vim 3 | "Description: Syntax checking plugin for syntastic using `recess` 4 | " (http://twitter.github.io/recess/). 5 | "Maintainer: Tim Carry 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_css_recess_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_css_recess_checker = 1 18 | 19 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 20 | \ 'filetype': 'css', 21 | \ 'name': 'recess', 22 | \ 'redirect': 'less/recess'}) 23 | 24 | " vim: set sw=4 sts=4 et fdm=marker: 25 | -------------------------------------------------------------------------------- /syntax_checkers/css/stylelint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: stylelint.vim 3 | "Description: Syntax checking plugin for syntastic using `stylelint` 4 | " (https://github.com/stylelint/stylelint). 5 | "Maintainer: Tim Carry 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_css_stylelint_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_css_stylelint_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | let s:args_after = { 23 | \ 'css': '-f json', 24 | \ 'html': '-f json', 25 | \ 'vue': '-f json' } 26 | 27 | function! SyntaxCheckers_css_stylelint_GetLocList() dict 28 | let makeprg = self.makeprgBuild({ 'args_after': get(s:args_after, self.getFiletype(), '') }) 29 | 30 | let errorformat = '%t:%f:%l:%c:%m' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat, 35 | \ 'subtype': 'Style', 36 | \ 'preprocess': 'stylelint', 37 | \ 'returns': [0, 1, 2] }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'css', 42 | \ 'name': 'stylelint'}) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | 49 | -------------------------------------------------------------------------------- /syntax_checkers/cucumber/cucumber.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: cucumber.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_cucumber_cucumber_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_cucumber_cucumber_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_cucumber_cucumber_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '--dry-run --quiet --strict --format pretty' }) 23 | 24 | let errorformat = 25 | \ '%f:%l:%c:%m,' . 26 | \ '%W %.%# (%m),' . 27 | \ '%-Z%f:%l:%.%#,'. 28 | \ '%-G%.%#' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'cucumber', 37 | \ 'name': 'cucumber'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/d/dscanner.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: dscanner.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: ANtlord 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_d_dscanner_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_d_dscanner_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_d_dscanner_GetHighlightRegex(i) 22 | let term = matchstr(a:i['text'], '\m^.\{-}''\zs\S\+\ze''') 23 | return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' 24 | endfunction 25 | 26 | function! SyntaxCheckers_d_dscanner_GetLocList() dict 27 | let makeprg = self.makeprgBuild({ 28 | \ 'args_after': '--report', 29 | \ 'tail': '2>' . syntastic#util#DevNull() }) 30 | 31 | let errorformat = '%f:%l:%c:%m' 32 | 33 | return SyntasticMake({ 34 | \ 'makeprg': makeprg, 35 | \ 'errorformat': errorformat, 36 | \ 'preprocess': 'dscanner', 37 | \ 'subtype': 'Style', 38 | \ 'returns': [0] }) 39 | endfunction 40 | 41 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 42 | \ 'filetype': 'd', 43 | \ 'name': 'dscanner' }) 44 | 45 | let &cpo = s:save_cpo 46 | unlet s:save_cpo 47 | 48 | " vim: set sw=4 sts=4 et fdm=marker: 49 | -------------------------------------------------------------------------------- /syntax_checkers/docbk/xmllint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: docbk.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_docbk_xmllint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_docbk_xmllint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'docbk', 20 | \ 'name': 'xmllint', 21 | \ 'redirect': 'xml/xmllint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/dockerfile/hadolint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: hadolint.vim 3 | "Description: Dockerfile linter written in Haskell 4 | " (http://hadolint.lukasmartinelli.ch/). 5 | "Maintainer: Jesper B. Rosenkilde 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_dockerfile_hadolint_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_dockerfile_hadolint_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_dockerfile_hadolint_GetLocList() dict 23 | let makeprg = self.makeprgBuild({}) 24 | 25 | let errorformat = '%W%f:%l %m' 26 | 27 | return SyntasticMake({ 28 | \ 'makeprg': makeprg, 29 | \ 'errorformat': errorformat, 30 | \ 'subtype': 'Style', 31 | \ 'returns': [0, 1] }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'dockerfile', 36 | \ 'name': 'hadolint'}) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/dustjs/swiffer.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: swiffer.vim 3 | "Description: Dust.js syntax checker - using swiffer 4 | "Maintainer: Steven Foote 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_dustjs_swiffer_checker') 13 | finish 14 | endif 15 | 16 | let g:loaded_syntastic_dustjs_swiffer_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = '%E%f - Line %l\, Column %c: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'dustjs', 33 | \ 'name': 'swiffer'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | -------------------------------------------------------------------------------- /syntax_checkers/erlang/syntaxerl.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: syntaxerl.vim 3 | "Description: Syntax checking plugin for syntastic. 4 | "Maintainer: locojay 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_erlang_syntaxerl_checker') 13 | finish 14 | endif 15 | 16 | let g:loaded_syntastic_erlang_syntaxerl_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | 22 | function! SyntaxCheckers_erlang_syntaxerl_GetLocList() dict 23 | 24 | let makeprg = self.makeprgBuild({}) 25 | 26 | let errorformat = 27 | \ '%W%f:%l: warning: %m,'. 28 | \ '%E%f:%l: %m' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'erlang', 37 | \ 'name': 'syntaxerl'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/go/gofmt.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: gofmt.vim 3 | "Description: Check go syntax using 'gofmt -l' 4 | "Maintainer: Brandon Thomson 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | " 13 | " This syntax checker does not reformat your source code. 14 | " Use a BufWritePre autocommand to that end: 15 | " autocmd FileType go autocmd BufWritePre Fmt 16 | 17 | if exists('g:loaded_syntastic_go_gofmt_checker') 18 | finish 19 | endif 20 | let g:loaded_syntastic_go_gofmt_checker = 1 21 | 22 | let s:save_cpo = &cpo 23 | set cpo&vim 24 | 25 | function! SyntaxCheckers_go_gofmt_GetLocList() dict 26 | let makeprg = self.makeprgBuild({ 27 | \ 'args_after': '-l', 28 | \ 'tail_after': '> ' . syntastic#util#DevNull() }) 29 | 30 | let errorformat = '%f:%l:%c: %m,%-G%.%#' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat, 35 | \ 'defaults': {'type': 'e'} }) 36 | endfunction 37 | 38 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 39 | \ 'filetype': 'go', 40 | \ 'name': 'gofmt'}) 41 | 42 | let &cpo = s:save_cpo 43 | unlet s:save_cpo 44 | 45 | " vim: set sw=4 sts=4 et fdm=marker: 46 | -------------------------------------------------------------------------------- /syntax_checkers/go/golangci_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: golangci_lint.vim 3 | "Description: Check go syntax using 'golangci-lint' 4 | "Maintainer: Hiroshi Ioka 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_go_golangci_lint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_go_golangci_lint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_go_golangci_lint_GetLocList() dict 22 | let buf = bufnr('') 23 | 24 | let makeprg = self.makeprgBuild({ 25 | \ 'args_before': 'run', 26 | \ 'fname': '.' }) 27 | 28 | let errorformat = 29 | \ '%f:%l:%c: %m,' . 30 | \ '%f:%l: %m,' . 31 | \ '%-G%.%#' 32 | 33 | return SyntasticMake({ 34 | \ 'makeprg': makeprg, 35 | \ 'errorformat': errorformat, 36 | \ 'cwd': fnamemodify(bufname(buf), ':p:h'), 37 | \ 'defaults': {'type': 'e'}, 38 | \ 'subtype': 'Style' }) 39 | endfunction 40 | 41 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 42 | \ 'filetype': 'go', 43 | \ 'name': 'golangci_lint', 44 | \ 'exec': 'golangci-lint' }) 45 | 46 | let &cpo = s:save_cpo 47 | unlet s:save_cpo 48 | 49 | " vim: set sw=4 sts=4 et fdm=marker: 50 | -------------------------------------------------------------------------------- /syntax_checkers/go/golint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: golint.vim 3 | "Description: Check go syntax using 'golint' 4 | "Maintainer: Hiroshi Ioka 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_go_golint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_go_golint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_go_golint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%f:%l:%c: %m,' . 26 | \ '%-G%.%#' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'defaults': {'type': 'w'}, 32 | \ 'subtype': 'Style' }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'go', 37 | \ 'name': 'golint'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/haml/haml.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: haml.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_haml_haml_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_haml_haml_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_haml_haml_IsAvailable() dict 22 | call syntastic#log#deprecationWarn('haml_interpreter', 'haml_haml_exec') 23 | return executable(self.getExec()) 24 | endfunction 25 | 26 | function! SyntaxCheckers_haml_haml_GetLocList() dict 27 | let makeprg = self.makeprgBuild({ 'args_after': '-c' }) 28 | 29 | let errorformat = 30 | \ 'Haml error on line %l: %m,' . 31 | \ 'Syntax error on line %l: %m,' . 32 | \ '%-G%.%#' 33 | 34 | return SyntasticMake({ 35 | \ 'makeprg': makeprg, 36 | \ 'errorformat': errorformat }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'haml', 41 | \ 'name': 'haml'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/haml/haml_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: haml_lint.vim 3 | "Description: HAML style and syntax checker plugin for Syntastic 4 | "Maintainer: Shane da Silva 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_haml_haml_lint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_haml_haml_lint_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_haml_haml_lint_GetLocList() dict 21 | let makeprg = self.makeprgBuild({}) 22 | let errorformat = '%f:%l [%t] %m' 23 | return SyntasticMake({ 24 | \ 'makeprg': makeprg, 25 | \ 'errorformat': errorformat, 26 | \ 'subtype': 'Style'}) 27 | endfunction 28 | 29 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 30 | \ 'filetype': 'haml', 31 | \ 'name': 'haml_lint', 32 | \ 'exec': 'haml-lint' }) 33 | 34 | let &cpo = s:save_cpo 35 | unlet s:save_cpo 36 | 37 | " vim: set sw=4 sts=4 et fdm=marker: 38 | -------------------------------------------------------------------------------- /syntax_checkers/handlebars/handlebars.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: handlebars.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_handlebars_handlebars_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_handlebars_handlebars_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_handlebars_handlebars_GetLocList() dict 21 | let makeprg = self.makeprgBuild({ 'args_after': '-f ' . syntastic#util#DevNull() }) 22 | 23 | let errorformat = 24 | \ '%EError: %m on line %l:,' . 25 | \ '%EError: %m,' . 26 | \ '%Z%p^,' . 27 | \ '%-G%.%#' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat, 32 | \ 'postprocess': ['guards'], 33 | \ 'defaults': {'bufnr': bufnr('')} }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'handlebars', 38 | \ 'name': 'handlebars'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/haskell/scan.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: scan.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_haskell_scan_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_haskell_scan_checker = 1 17 | 18 | if !exists('g:syntastic_haskell_scan_sort') 19 | let g:syntastic_haskell_scan_sort = 1 20 | endif 21 | 22 | let s:save_cpo = &cpo 23 | set cpo&vim 24 | 25 | function! SyntaxCheckers_haskell_scan_GetLocList() dict 26 | let makeprg = self.makeprgBuild({}) 27 | 28 | let errorformat = '%f:%l:%v: %m' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'subtype': 'Style' }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'haskell', 38 | \ 'name': 'scan'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/help/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_help_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_help_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'help', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/hss/hss.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: hss.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Justin Donaldson (jdonaldson@gmail.com) 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_hss_hss_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_hss_hss_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_hss_hss_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after' : '-output ' . syntastic#util#DevNull() }) 23 | 24 | let errorformat = '%E%f:%l: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'hss', 33 | \ 'name': 'hss'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | -------------------------------------------------------------------------------- /syntax_checkers/html/eslint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: eslint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_html_eslint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_html_eslint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'html', 20 | \ 'name': 'eslint', 21 | \ 'redirect': 'javascript/eslint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/html/gjslint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: gjslint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_html_gjslint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_html_gjslint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'html', 20 | \ 'name': 'gjslint', 21 | \ 'redirect': 'javascript/gjslint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/html/htmlhint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: html.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_html_htmlhint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_html_htmlhint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_html_htmlhint_IsAvailable() dict 22 | if !executable(self.getExec()) 23 | return 0 24 | endif 25 | return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 9, 13]) 26 | endfunction 27 | 28 | function! SyntaxCheckers_html_htmlhint_GetLocList() dict 29 | let makeprg = self.makeprgBuild({ 'args_before': '--format unix' }) 30 | 31 | let errorformat = '%f:%l:%c: %m' 32 | 33 | return SyntasticMake({ 34 | \ 'makeprg': makeprg, 35 | \ 'errorformat': errorformat, 36 | \ 'returns': [0, 1] }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'html', 41 | \ 'name': 'htmlhint'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/html/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_html_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_html_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'html', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/html/stylelint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: stylelint.vim 3 | "Description: Syntax checking plugin for syntastic using `stylelint` 4 | " (https://github.com/stylelint/stylelint). 5 | "Maintainer: Tim Carry 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_html_stylelint_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_html_stylelint_checker = 1 18 | 19 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 20 | \ 'filetype': 'html', 21 | \ 'name': 'stylelint', 22 | \ 'redirect': 'css/stylelint'}) 23 | 24 | 25 | " vim: set sw=4 sts=4 et fdm=marker: 26 | -------------------------------------------------------------------------------- /syntax_checkers/html/textlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: textlint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_html_textlint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_html_textlint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'html', 20 | \ 'name': 'textlint', 21 | \ 'redirect': 'text/textlint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/jade/jade_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: jade_lint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_jade_jade_lint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_jade_jade_lint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'jade', 20 | \ 'name': 'jade_lint', 21 | \ 'exec': 'jade-lint', 22 | \ 'redirect': 'pug/pug_lint'}) 23 | 24 | " vim: set sw=4 sts=4 et fdm=marker: 25 | -------------------------------------------------------------------------------- /syntax_checkers/javascript/gjslint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: gjslint.vim 3 | "Description: Javascript syntax checker - using gjslint 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_javascript_gjslint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_javascript_gjslint_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_javascript_gjslint_GetLocList() dict 21 | call syntastic#log#deprecationWarn('javascript_gjslint_conf', 'javascript_gjslint_args') 22 | 23 | let makeprg = self.makeprgBuild({ 24 | \ 'args': '--nodebug_indentation', 25 | \ 'args_after': '--check_html --nosummary --unix_mode --nobeep' }) 26 | 27 | let errorformat = 28 | \ "%f:%l:(New Error -%\\?\%n) %m," . 29 | \ "%f:%l:(-%\\?%n) %m," . 30 | \ "%-G1 files checked," . 31 | \ " no errors found.," . 32 | \ "%-G%.%#" 33 | 34 | return SyntasticMake({ 35 | \ 'makeprg': makeprg, 36 | \ 'errorformat': errorformat }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'javascript', 41 | \ 'name': 'gjslint'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/javascript/jsl.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: jsl.vim 3 | "Description: Javascript syntax checker - using jsl 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_javascript_jsl_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_javascript_jsl_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_javascript_jsl_GetLocList() dict 21 | call syntastic#log#deprecationWarn('javascript_jsl_conf', 'javascript_jsl_args', 22 | \ "'-conf ' . syntastic#util#shexpand(OLD_VAR)") 23 | 24 | let makeprg = self.makeprgBuild({ 25 | \ 'args_after': '-nologo -nofilelisting -nosummary -nocontext -process' }) 26 | 27 | let errorformat = 28 | \ '%W%f(%l): lint warning: %m,'. 29 | \ '%-Z%p^,'. 30 | \ '%W%f(%l): warning: %m,'. 31 | \ '%-Z%p^,'. 32 | \ '%E%f(%l): SyntaxError: %m,'. 33 | \ '%-Z%p^,'. 34 | \ '%-G' 35 | 36 | return SyntasticMake({ 37 | \ 'makeprg': makeprg, 38 | \ 'errorformat': errorformat }) 39 | endfunction 40 | 41 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 42 | \ 'filetype': 'javascript', 43 | \ 'name': 'jsl'}) 44 | 45 | let &cpo = s:save_cpo 46 | unlet s:save_cpo 47 | 48 | " vim: set sw=4 sts=4 et fdm=marker: 49 | -------------------------------------------------------------------------------- /syntax_checkers/javascript/lynt.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: lynt.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_javascript_lynt_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_javascript_lynt_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_javascript_lynt_GetLocList() dict 21 | let makeprg = self.makeprgBuild({ 'args_after': '--json' }) 22 | 23 | let errorformat = '%f:%l:%c:%n:%m' 24 | 25 | let loclist = SyntasticMake({ 26 | \ 'makeprg': makeprg, 27 | \ 'errorformat': errorformat, 28 | \ 'preprocess': 'lynt', 29 | \ 'defaults': {'type': 'E'}, 30 | \ 'returns': [0, 1] }) 31 | 32 | for e in loclist 33 | if get(e, 'col', 0) && get(e, 'nr', 0) 34 | let e['hl'] = '\%>' . (e['col'] - 1) . 'c\%<' . (e['nr']) . 'c' 35 | let e['nr'] = 0 36 | endif 37 | endfor 38 | 39 | return loclist 40 | endfunction 41 | 42 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 43 | \ 'filetype': 'javascript', 44 | \ 'name': 'lynt'}) 45 | 46 | let &cpo = s:save_cpo 47 | unlet s:save_cpo 48 | 49 | " vim: set sw=4 sts=4 et fdm=marker: 50 | -------------------------------------------------------------------------------- /syntax_checkers/javascript/mixedindentlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mixedindentlint.vim 3 | "Description: Mixed indentation linter for vim 4 | "Maintainer: Payton Swick 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_javascript_mixedindentlint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_javascript_mixedindentlint_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_javascript_mixedindentlint_GetLocList() dict 21 | let makeprg = self.makeprgBuild({}) 22 | 23 | let errorformat = 'Line %l in "%f" %.%#' 24 | 25 | return SyntasticMake({ 26 | \ 'makeprg': makeprg, 27 | \ 'errorformat': errorformat, 28 | \ 'subtype': 'Style', 29 | \ 'defaults': { 'text': 'Indentation differs from rest of file' }, 30 | \ 'returns': [0, 1] }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'javascript', 35 | \ 'name': 'mixedindentlint'}) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/json/jsonlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: jsonlint.vim 3 | "Description: JSON syntax checker - using jsonlint 4 | "Maintainer: Miller Medeiros 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_json_jsonlint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_json_jsonlint_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_json_jsonlint_GetLocList() dict 21 | let makeprg = self.makeprgBuild({ 'post_args_after': '--compact' }) 22 | 23 | let errorformat = 24 | \ '%ELine %l:%c,'. 25 | \ '%Z\\s%#Reason: %m,'. 26 | \ '%C%.%#,'. 27 | \ '%f: line %l\, col %c\, %m,'. 28 | \ '%-G%.%#' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'defaults': {'bufnr': bufnr('')} }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'json', 38 | \ 'name': 'jsonlint'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/json/jsonval.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: jsonval.vim 3 | "Description: JSON syntax checker - using jsonval 4 | "Maintainer: Miller Medeiros 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_json_jsonval_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_json_jsonval_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_json_jsonval_GetLocList() dict 21 | " based on https://gist.github.com/1196345 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%E%f: %m at line %l,' . 26 | \ '%-G%.%#' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'defaults': {'bufnr': bufnr('')} }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'json', 36 | \ 'name': 'jsonval'}) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/less/less-lint.coffee: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | fs = require 'fs' 4 | less = require 'less' 5 | args = process.argv.slice(1) 6 | options = {} 7 | 8 | args = args.filter (arg) -> 9 | match = arg.match(/^-I(.+)$/) 10 | if match 11 | options.paths.push(match[1]); 12 | return false 13 | 14 | match = arg.match(/^--?([a-z][\-0-9a-z]*)(?:=([^\s]+))?$/i) 15 | if match 16 | arg = match[1] 17 | else 18 | return arg 19 | 20 | switch arg 21 | when 'strict-imports' then options.strictImports = true 22 | when 'include-path' 23 | options.paths = match[2].split(if os.type().match(/Windows/) then ';' else ':') 24 | .map (p) -> 25 | if p 26 | return path.resolve(process.cwd(), p) 27 | when 'O0' then options.optimization = 0 28 | when 'O1' then options.optimization = 1 29 | when 'O2' then options.optimization = 2 30 | 31 | options.filename = args[1] 32 | 33 | parser = new(less.Parser) options 34 | 35 | fs.readFile(options.filename, 'utf-8', (err,data) -> 36 | parser.parse(data, (err, tree) -> 37 | if err 38 | less.writeError err 39 | process.exit(1) 40 | ) 41 | ) 42 | -------------------------------------------------------------------------------- /syntax_checkers/less/less-lint.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.3.3 2 | (function() { 3 | var args, fs, less, options, parser; 4 | 5 | fs = require('fs'); 6 | 7 | less = require('less'); 8 | 9 | args = process.argv.slice(1); 10 | 11 | options = {}; 12 | 13 | args = args.filter(function(arg) { 14 | var match; 15 | match = arg.match(/^-I(.+)$/); 16 | if (match) { 17 | options.paths.push(match[1]); 18 | return false; 19 | } 20 | match = arg.match(/^--?([a-z][\-0-9a-z]*)(?:=([^\s]+))?$/i); 21 | if (match) { 22 | arg = match[1]; 23 | } else { 24 | return arg; 25 | } 26 | switch (arg) { 27 | case 'strict-imports': 28 | return options.strictImports = true; 29 | case 'include-path': 30 | return options.paths = match[2].split(os.type().match(/Windows/) ? ';' : ':').map(function(p) { 31 | if (p) { 32 | return path.resolve(process.cwd(), p); 33 | } 34 | }); 35 | case 'O0': 36 | return options.optimization = 0; 37 | case 'O1': 38 | return options.optimization = 1; 39 | case 'O2': 40 | return options.optimization = 2; 41 | } 42 | }); 43 | 44 | options.filename = args[1]; 45 | 46 | parser = new less.Parser(options); 47 | 48 | fs.readFile(options.filename, 'utf-8', function(err, data) { 49 | return parser.parse(data, function(err, tree) { 50 | if (err) { 51 | less.writeError(err); 52 | return process.exit(1); 53 | } 54 | }); 55 | }); 56 | 57 | }).call(this); 58 | -------------------------------------------------------------------------------- /syntax_checkers/less/recess.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: recess.vim 3 | "Description: Syntax checking plugin for syntastic using `recess` 4 | " (http://twitter.github.io/recess/). 5 | "Maintainer: Tim Carry 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_less_recess_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_less_recess_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_less_recess_GetLocList() dict 23 | let makeprg = self.makeprgBuild({ 24 | \ 'post_args_after': '--format=compact --stripColors' }) 25 | 26 | let errorformat = 27 | \ '%E%m in %f,' . 28 | \ '%Z %#%l.%.%#,' . 29 | \ '%f:%l:%m,' . 30 | \ '%-G%.%#' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'less', 39 | \ 'name': 'recess'}) 40 | 41 | let &cpo = s:save_cpo 42 | unlet s:save_cpo 43 | 44 | " vim: set sw=4 sts=4 et fdm=marker: 45 | -------------------------------------------------------------------------------- /syntax_checkers/llvm/llvm.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: llvm.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Andrew Kelley 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_llvm_llvm_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_llvm_llvm_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_llvm_llvm_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': syntastic#c#NullOutput() }) 23 | 24 | let errorformat = 'llc: %f:%l:%c: %trror: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'llvm', 33 | \ 'name': 'llvm', 34 | \ 'exec': 'llc'}) 35 | 36 | let &cpo = s:save_cpo 37 | unlet s:save_cpo 38 | 39 | " vim: set sw=4 sts=4 et fdm=marker: 40 | -------------------------------------------------------------------------------- /syntax_checkers/markdown/mdl.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mdl.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Charles Beynon 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_markdown_mdl_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_markdown_mdl_checker = 1 17 | 18 | if !exists('g:syntastic_markdown_mdl_sort') 19 | let g:syntastic_markdown_mdl_sort = 1 20 | endif 21 | 22 | let s:save_cpo = &cpo 23 | set cpo&vim 24 | 25 | function! SyntaxCheckers_markdown_mdl_GetLocList() dict 26 | let makeprg = self.makeprgBuild({ 'args': '--warnings' }) 27 | 28 | let errorformat = 29 | \ '%E%f:%\s%\=%l: %m,' . 30 | \ '%E%f:%l:%c %m,' . 31 | \ '%E%f:%l %m,' . 32 | \ '%W%f: Kramdown Warning: %m found on line %l' 33 | 34 | return SyntasticMake({ 35 | \ 'makeprg': makeprg, 36 | \ 'errorformat': errorformat, 37 | \ 'subtype': 'Style' }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'markdown', 42 | \ 'name': 'mdl'}) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | -------------------------------------------------------------------------------- /syntax_checkers/markdown/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_markdown_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_markdown_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'markdown', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/markdown/textlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: textlint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_markdown_textlint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_markdown_textlint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'markdown', 20 | \ 'name': 'textlint', 21 | \ 'redirect': 'text/textlint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/matlab/mlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: matlab.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Jason Graham 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_matlab_mlint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_matlab_mlint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_matlab_mlint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-id' }) 23 | 24 | let errorformat = 25 | \ 'L %l (C %c): %*[a-zA-Z0-9]: %m,'. 26 | \ 'L %l (C %c-%*[0-9]): %*[a-zA-Z0-9]: %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'defaults': {'bufnr': bufnr('')} }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'matlab', 36 | \ 'name': 'mlint'}) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/mercury/mmc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mercury.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Joshua Rahm (joshuarahm@gmail.com) 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_mercury_mmc_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_mercury_mmc_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_mercury_mmc_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_before': '-e' }) 23 | 24 | let errorformat = 25 | \ '%C%f:%l: %m,' . 26 | \ '%E%f:%l: %m,' . 27 | \ '%-G%.%#' 28 | 29 | let loclist = SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat }) 32 | 33 | for e in loclist 34 | if stridx(e['text'], ' warning:') >= 0 35 | let e['type'] = 'W' 36 | endif 37 | endfor 38 | 39 | return loclist 40 | endfunction 41 | 42 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 43 | \ 'filetype': 'mercury', 44 | \ 'name': 'mmc'}) 45 | 46 | let &cpo = s:save_cpo 47 | unlet s:save_cpo 48 | 49 | " vim: set sw=4 sts=4 et fdm=marker: 50 | -------------------------------------------------------------------------------- /syntax_checkers/nasm/nasm.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: nasm.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Håvard Pettersson 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_nasm_nasm_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_nasm_nasm_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_nasm_nasm_GetLocList() dict 22 | let buf = bufnr('') 23 | let makeprg = self.makeprgBuild({ 24 | \ 'args_after': '-X gnu' . 25 | \ ' -I ' . syntastic#util#shescape(fnamemodify(bufname(buf), ':p:h') . syntastic#util#Slash()) . 26 | \ ' ' . syntastic#c#NullOutput() }) 27 | 28 | let errorformat = '%f:%l: %t%*[^:]: %m' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'nasm', 37 | \ 'name': 'nasm'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/nix/nix.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: nix.vim 3 | "Description: Check nix syntax using 'nix-instantiate --eval-only' 4 | "Maintainer: Tim Cuthbertson 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | " 13 | " 14 | if exists('g:loaded_syntastic_nix_nix_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_nix_nix_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_nix_nix_GetLocList() dict 23 | let makeprg = self.makeprgBuild({ 'args_after': '--parse-only' }) 24 | 25 | let errorformat = 26 | \ '%f:%l:%c:%m,' . 27 | \ '%f:%l:%m,' . 28 | \ '%f:%m' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'defaults': {'type': 'e'}, 34 | \ 'preprocess': 'nix' }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'nix', 39 | \ 'name': 'nix', 40 | \ 'exec': 'nix-instantiate' }) 41 | 42 | let &cpo = s:save_cpo 43 | unlet s:save_cpo 44 | 45 | " vim: set sw=4 sts=4 et fdm=marker: 46 | -------------------------------------------------------------------------------- /syntax_checkers/nroff/igor.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: igor.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_nroff_igor_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_nroff_igor_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'nroff', 20 | \ 'name': 'igor', 21 | \ 'redirect': 'docbk/igor'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/nroff/mandoc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mandoc.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_nroff_mandoc_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_nroff_mandoc_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_nroff_mandoc_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-Tlint' }) 23 | 24 | let errorformat = 25 | \ '%E%f:%l:%c: %tRROR: %m,' . 26 | \ '%W%f:%l:%c: %tARNING: %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'returns': [0, 2, 3, 4] }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'nroff', 36 | \ 'name': 'mandoc'}) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/nroff/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_nroff_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_nroff_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'nroff', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/objc/oclint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: oclint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: "UnCO" Lin 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_objc_oclint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_objc_oclint_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'objc', 19 | \ 'name': 'oclint', 20 | \ 'redirect': 'c/oclint'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/objcpp/oclint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: oclint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: "UnCO" Lin 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_objcpp_oclint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_objcpp_oclint_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'objcpp', 19 | \ 'name': 'oclint', 20 | \ 'redirect': 'c/oclint'}) 21 | 22 | " vim: set sw=4 sts=4 et fdm=marker: 23 | -------------------------------------------------------------------------------- /syntax_checkers/perl/podchecker.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: podchecker.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_perl_podchecker_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_perl_podchecker_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'perl', 20 | \ 'name': 'podchecker', 21 | \ 'redirect': 'pod/podchecker'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/perl6/perl6.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: perl6.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | # Perl 6 is dead, long live Raku! 14 | 15 | if exists('g:loaded_syntastic_perl6_perl6_checker') 16 | finish 17 | endif 18 | let g:loaded_syntastic_perl6_perl6_checker = 1 19 | 20 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 21 | \ 'filetype': 'perl6', 22 | \ 'name': 'perl6', 23 | \ 'redirect': 'raku/raku'}) 24 | 25 | " vim: set sw=4 sts=4 et fdm=marker: 26 | -------------------------------------------------------------------------------- /syntax_checkers/php/phpcs.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: phpcs.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_php_phpcs_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_php_phpcs_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_php_phpcs_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '--report=csv' }) 23 | 24 | let errorformat = 25 | \ '%-GFile\,Line\,Column\,Type\,Message\,Source\,Severity%.%#,'. 26 | \ '"%f"\,%l\,%c\,%t%*[a-zA-Z]\,"%m"\,%*[a-zA-Z0-9_.-]\,%*[0-9]%.%#' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'subtype': 'Style' }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'php', 36 | \ 'name': 'phpcs' }) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/php/phpstan.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: phpstan.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Przepompownia przepompownia@users.noreply.github.com 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_php_phpstan_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_php_phpstan_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_php_phpstan_IsAvailable() dict 22 | if !executable(self.getExec()) 23 | return 0 24 | endif 25 | return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 8, 5]) 26 | endfunction 27 | 28 | function! SyntaxCheckers_php_phpstan_GetLocList() dict 29 | let makeprg = self.makeprgBuild({ 30 | \ 'exe_after': 'analyse', 31 | \ 'args': '--level=5', 32 | \ 'args_after': '--error-format raw' }) 33 | 34 | let errorformat = '%f:%l:%m' 35 | 36 | return SyntasticMake({ 37 | \ 'makeprg': makeprg, 38 | \ 'errorformat': errorformat, 39 | \ 'subtype' : 'Style' }) 40 | endfunction 41 | 42 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 43 | \ 'filetype': 'php', 44 | \ 'name': 'phpstan'}) 45 | 46 | let &cpo = s:save_cpo 47 | unlet s:save_cpo 48 | 49 | " vim: set sw=4 sts=4 et fdm=marker: 50 | -------------------------------------------------------------------------------- /syntax_checkers/po/dennis.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: dennis.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_po_dennis_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_po_dennis_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_po_dennis_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 23 | \ 'exe_after': 'lint', 24 | \ 'post_args_after': '--reporter line' }) 25 | 26 | let errorformat = '%f:%l:%c:%t%n:%m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'subtype': 'Style', 32 | \ 'returns': [0, 1] }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'po', 37 | \ 'name': 'dennis', 38 | \ 'exec': 'dennis-cmd' }) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/pod/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_pod_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_pod_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'pod', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/pug/pug_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pug_lint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Ben Parnell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_pug_pug_lint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_pug_pug_lint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_pug_pug_lint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-r inline' }) 23 | 24 | let errorformat = '%f:%l:%c %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat, 29 | \ 'returns': [0, 2] }) 30 | endfunction 31 | 32 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 33 | \ 'filetype': 'pug', 34 | \ 'name': 'pug_lint', 35 | \ 'exec': 'pug-lint' }) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/python/codec.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from __future__ import print_function 4 | from sys import argv, exit 5 | 6 | import codecs 7 | import re 8 | import os 9 | 10 | 11 | if len(argv) != 2: 12 | exit(1) 13 | 14 | try: 15 | with open(argv[1]) as fle: 16 | text = fle.readlines() 17 | 18 | if text: 19 | match = re.match(r"#\s*coding\s*:\s*(?P\w+)", text[0]) 20 | if match: 21 | text = codecs.lookup(match.groupdict()["coding"]).incrementaldecoder().decode( 22 | ''.join(text).encode('utf-8')).encode('utf-8') 23 | 24 | if isinstance(text, list): 25 | text = ''.join(text).encode('utf-8') 26 | 27 | compile(text, argv[1], 'exec', 0, 1) 28 | except SyntaxError as err: 29 | print('%s:%s:%s: %s' % (err.filename, err.lineno, err.offset, err.msg)) 30 | except Exception as err: 31 | print('%s:%s:%s: %s' % (os.path.abspath(argv[1]), 1, 0, err)) 32 | -------------------------------------------------------------------------------- /syntax_checkers/python/compile.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from __future__ import print_function 4 | from sys import argv, exit 5 | 6 | 7 | if len(argv) != 2: 8 | exit(1) 9 | 10 | try: 11 | compile(open(argv[1]).read(), argv[1], 'exec', 0, 1) 12 | except SyntaxError as err: 13 | print('%s:%s:%s: %s' % (err.filename, err.lineno, err.offset, err.msg)) 14 | -------------------------------------------------------------------------------- /syntax_checkers/python/mypy.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mypy.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Author: Russ Hewgill 5 | " 6 | "============================================================================ 7 | 8 | if exists('g:loaded_syntastic_python_mypy_checker') 9 | finish 10 | endif 11 | let g:loaded_syntastic_python_mypy_checker = 1 12 | 13 | let s:save_cpo = &cpo 14 | set cpo&vim 15 | 16 | function! SyntaxCheckers_python_mypy_GetLocList() dict 17 | if !exists('s:mypy_new') 18 | " creative versioning: version string has changed from v0.4.6 to v0.470 19 | " XXX the test should be fine for now, since 470 > 4 20 | let s:mypy_new = syntastic#util#versionIsAtLeast(self.getVersion(), [0, 4, 5]) 21 | endif 22 | 23 | let buf = bufnr('') 24 | let makeprg = self.makeprgBuild({ 25 | \ 'args_after': (s:mypy_new ? '--show-column-numbers' : ''), 26 | \ 'fname': syntastic#util#shescape(fnamemodify(bufname(buf), ':p')) }) 27 | 28 | let errorformat = 29 | \ '%f:%l:%c:%t:%m,' . 30 | \ '%f:%l:%t:%m' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat, 35 | \ 'returns': [0, 1], 36 | \ 'preprocess': 'mypy' }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'python', 41 | \ 'name': 'mypy'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/python/pep257.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pep257.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_python_pep257_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_python_pep257_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'python', 20 | \ 'name': 'pep257', 21 | \ 'redirect': 'python/pydocstyle'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/python/pep8.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pep8.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_python_pep8_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_python_pep8_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'python', 20 | \ 'name': 'pep8', 21 | \ 'redirect': 'python/pycodestyle'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/python/py3kwarn.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: py3kwarn.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Authors: Liam Curry 5 | " 6 | "============================================================================ 7 | 8 | if exists('g:loaded_syntastic_python_py3kwarn_checker') 9 | finish 10 | endif 11 | let g:loaded_syntastic_python_py3kwarn_checker = 1 12 | 13 | let s:save_cpo = &cpo 14 | set cpo&vim 15 | 16 | function! SyntaxCheckers_python_py3kwarn_GetLocList() dict 17 | let makeprg = self.makeprgBuild({}) 18 | 19 | let errorformat = '%W%f:%l:%c: %m' 20 | 21 | let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' } 22 | 23 | return SyntasticMake({ 24 | \ 'makeprg': makeprg, 25 | \ 'errorformat': errorformat, 26 | \ 'env': env }) 27 | endfunction 28 | 29 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 30 | \ 'filetype': 'python', 31 | \ 'name': 'py3kwarn'}) 32 | 33 | let &cpo = s:save_cpo 34 | unlet s:save_cpo 35 | 36 | " vim: set sw=4 sts=4 et fdm=marker: 37 | -------------------------------------------------------------------------------- /syntax_checkers/python/pycodestyle.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pycodestyle.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_python_pycodestyle_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_python_pycodestyle_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_python_pycodestyle_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = '%f:%l:%c: %m' 25 | 26 | let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' } 27 | 28 | let loclist = SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'env': env, 32 | \ 'subtype': 'Style' }) 33 | 34 | for e in loclist 35 | let e['type'] = e['text'] =~? '^W' ? 'W' : 'E' 36 | endfor 37 | 38 | return loclist 39 | endfunction 40 | 41 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 42 | \ 'filetype': 'python', 43 | \ 'name': 'pycodestyle'}) 44 | 45 | let &cpo = s:save_cpo 46 | unlet s:save_cpo 47 | 48 | " vim: set sw=4 sts=4 et fdm=marker: 49 | -------------------------------------------------------------------------------- /syntax_checkers/qml/qmllint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: qmllint.vim 3 | "Description: Syntax checking plugin for syntastic using qmllint 4 | "Maintainer: Peter Wu 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_qml_qmllint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_qml_qmllint_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_qml_qmllint_GetLocList() dict 21 | let makeprg = self.makeprgBuild({}) 22 | 23 | let errorformat = '%f:%l : %m' 24 | 25 | return SyntasticMake({ 26 | \ 'makeprg': makeprg, 27 | \ 'errorformat': errorformat, 28 | \ 'postprocess': ['guards'], 29 | \ 'returns': [0, 255] }) 30 | endfunction 31 | 32 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 33 | \ 'filetype': 'qml', 34 | \ 'name': 'qmllint'}) 35 | 36 | let &cpo = s:save_cpo 37 | unlet s:save_cpo 38 | 39 | " vim: set sw=4 sts=4 et fdm=marker: 40 | -------------------------------------------------------------------------------- /syntax_checkers/racket/racket.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: racket.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Author: Steve Bragg 5 | " 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_racket_racket_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_racket_racket_checker=1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_racket_racket_GetLocList() dict 23 | let makeprg = self.makeprgBuild({}) 24 | 25 | " example of error message 26 | "eval-apply.rkt:460:30: the-empty-environment: unbound identifier in module 27 | " in: the-empty-environment 28 | let errorformat = '%f:%l:%v: %m' 29 | 30 | let loclist = SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat }) 33 | 34 | for e in loclist 35 | if has_key(e, 'col') 36 | let e['col'] += 1 37 | endif 38 | endfor 39 | 40 | return loclist 41 | endfunction 42 | 43 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 44 | \ 'filetype': 'racket', 45 | \ 'name': 'racket', 46 | \ 'enable': 'enable_racket_racket_checker' }) 47 | 48 | let &cpo = s:save_cpo 49 | unlet s:save_cpo 50 | 51 | " vim: set sw=4 sts=4 et fdm=marker: 52 | -------------------------------------------------------------------------------- /syntax_checkers/rmd/lintr.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: lintr.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Jim Hester 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_rmd_lintr_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_rmd_lintr_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'rmd', 20 | \ 'name': 'lintr', 21 | \ 'redirect': 'r/lintr'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/rnc/rnv.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: rnv.vim 3 | "Description: RelaxNG RNV syntax checking plugin for syntastic 4 | "Maintainer: Remko Tronçon 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_rnc_rnv_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_rnc_rnv_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_rnc_rnv_GetLocList() dict 21 | let makeprg = self.makeprgBuild({ 'args': '-c' }) 22 | 23 | let errorformat = 24 | \ '%f:%l:%c: %trror: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'rnc', 33 | \ 'name': 'rnv'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | -------------------------------------------------------------------------------- /syntax_checkers/rst/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_rst_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_rst_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'rst', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/rst/rstcheck.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: rstcheck.vim 3 | "Description: Syntax checking for reStructuredText and embedded code blocks 4 | "Authors: Steven Myint 5 | " 6 | "============================================================================ 7 | 8 | if exists('g:loaded_syntastic_rst_rstcheck_checker') 9 | finish 10 | endif 11 | let g:loaded_syntastic_rst_rstcheck_checker = 1 12 | 13 | let s:save_cpo = &cpo 14 | set cpo&vim 15 | 16 | function! SyntaxCheckers_rst_rstcheck_GetLocList() dict 17 | let makeprg = self.makeprgBuild({}) 18 | 19 | let errorformat = 20 | \ '%f:%l: (%tNFO/1) %m,'. 21 | \ '%f:%l: (%tARNING/2) %m,'. 22 | \ '%f:%l: (%tRROR/3) %m,'. 23 | \ '%f:%l: (%tEVERE/4) %m,'. 24 | \ '%-G%.%#' 25 | 26 | let loclist = SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat, 29 | \ 'returns': [0, 1] }) 30 | 31 | for e in loclist 32 | if e['type'] ==? 'S' 33 | let e['type'] = 'E' 34 | elseif e['type'] ==? 'I' 35 | let e['type'] = 'W' 36 | let e['subtype'] = 'Style' 37 | endif 38 | endfor 39 | 40 | return loclist 41 | endfunction 42 | 43 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 44 | \ 'filetype': 'rst', 45 | \ 'name': 'rstcheck'}) 46 | 47 | let &cpo = s:save_cpo 48 | unlet s:save_cpo 49 | 50 | " vim: set sw=4 sts=4 et fdm=marker: 51 | -------------------------------------------------------------------------------- /syntax_checkers/ruby/jruby.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: jruby.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Leonid Shevtsov 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_ruby_jruby_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_ruby_jruby_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_ruby_jruby_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 23 | \ 'args': (syntastic#util#isRunningWindows() ? '-T1 -W1' : '-W1'), 24 | \ 'args_after': '-c' }) 25 | 26 | let errorformat = 27 | \ '%-GSyntax OK for %f,'. 28 | \ '%ESyntaxError in %f:%l: syntax error\, %m,'. 29 | \ '%Z%p^,'. 30 | \ '%W%f:%l: warning: %m,'. 31 | \ '%Z%p^,'. 32 | \ '%W%f:%l: %m,'. 33 | \ '%-C%.%#' 34 | 35 | let env = syntastic#util#isRunningWindows() ? {} : { 'RUBYOPT': '' } 36 | 37 | return SyntasticMake({ 38 | \ 'makeprg': makeprg, 39 | \ 'errorformat': errorformat, 40 | \ 'env': env }) 41 | endfunction 42 | 43 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 44 | \ 'filetype': 'ruby', 45 | \ 'name': 'jruby'}) 46 | 47 | let &cpo = s:save_cpo 48 | unlet s:save_cpo 49 | 50 | " vim: set sw=4 sts=4 et fdm=marker: 51 | -------------------------------------------------------------------------------- /syntax_checkers/ruby/macruby.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: macruby.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "License: This program is free software. It comes without any warranty, 5 | " to the extent permitted by applicable law. You can redistribute 6 | " it and/or modify it under the terms of the Do What The Fuck You 7 | " Want To Public License, Version 2, as published by Sam Hocevar. 8 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 9 | " 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_ruby_macruby_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_ruby_macruby_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_ruby_macruby_GetLocList() dict 21 | let makeprg = self.makeprgBuild({ 22 | \ 'args': '-W1', 23 | \ 'args_after': '-c' }) 24 | 25 | let errorformat = 26 | \ '%-GSyntax OK,'. 27 | \ '%E%f:%l: syntax error\, %m,'. 28 | \ '%Z%p^,'. 29 | \ '%W%f:%l: warning: %m,'. 30 | \ '%Z%p^,'. 31 | \ '%W%f:%l: %m,'. 32 | \ '%-C%.%#' 33 | 34 | let env = { 'RUBYOPT': '' } 35 | 36 | return SyntasticMake({ 37 | \ 'makeprg': makeprg, 38 | \ 'errorformat': errorformat, 39 | \ 'env': env }) 40 | endfunction 41 | 42 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 43 | \ 'filetype': 'ruby', 44 | \ 'name': 'macruby'}) 45 | 46 | let &cpo = s:save_cpo 47 | unlet s:save_cpo 48 | 49 | " vim: set sw=4 sts=4 et fdm=marker: 50 | -------------------------------------------------------------------------------- /syntax_checkers/ruby/rubylint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: rubylint.vim 3 | "Description: Checks Ruby source code using ruby-lint 4 | "Maintainer: Yorick Peterse 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_ruby_rubylint_checker') 14 | finish 15 | endif 16 | 17 | let g:loaded_syntastic_ruby_rubylint_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_ruby_rubylint_GetLocList() dict 23 | if !exists('s:rubylint_new') 24 | let s:rubylint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [2]) 25 | endif 26 | let makeprg = self.makeprgBuild({ 27 | \ 'args': (s:rubylint_new ? '' : 'analyze '), 28 | \ 'args_after': '--presenter=syntastic' }) 29 | 30 | let errorformat = '%f:%t:%l:%c: %m' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'ruby', 39 | \ 'name': 'rubylint', 40 | \ 'exec': 'ruby-lint'}) 41 | 42 | let &cpo = s:save_cpo 43 | unlet s:save_cpo 44 | 45 | " vim: set sw=4 sts=4 et fdm=marker: 46 | -------------------------------------------------------------------------------- /syntax_checkers/ruby/sorbet.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: sorbet.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Tom Morton 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_ruby_sorbet_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_ruby_sorbet_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_ruby_sorbet_IsAvailable() dict 22 | if !executable(self.getExec()) 23 | return 0 24 | endif 25 | return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 1, 0]) 26 | endfunction 27 | 28 | function! SyntaxCheckers_ruby_sorbet_GetLocList() dict 29 | let makeprg = self.makeprgBuild({ 'args_before': 'tc' }) 30 | 31 | let errorformat = '%f:%l: %m' 32 | 33 | return SyntasticMake({ 34 | \ 'makeprg': makeprg, 35 | \ 'errorformat': errorformat, 36 | \ 'type': 'E', 37 | \ 'subtype': 'Style' }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'ruby', 42 | \ 'name': 'sorbet', 43 | \ 'exec': 'srb' }) 44 | 45 | let &cpo = s:save_cpo 46 | unlet s:save_cpo 47 | 48 | " vim: set sw=4 sts=4 et fdm=marker: 49 | -------------------------------------------------------------------------------- /syntax_checkers/sass/sassc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: sassc.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_sass_sassc_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_sass_sassc_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_sass_sassc_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'fname_after': syntastic#util#DevNull() }) 23 | 24 | let errorformat = '%f:%l: %trror: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'sass', 33 | \ 'name': 'sassc'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | -------------------------------------------------------------------------------- /syntax_checkers/scala/scalac.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: scala.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Rickey Visinski 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_scala_scalac_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_scala_scalac_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_scala_scalac_GetLocList() dict 22 | call syntastic#log#deprecationWarn('scala_options', 'scala_scalac_args') 23 | 24 | let makeprg = self.makeprgBuild({ 'args': '-Ystop-after:parser' }) 25 | 26 | let errorformat = 27 | \ '%E%f:%l: %trror: %m,' . 28 | \ '%W%f:%l: %tarning:%m,' . 29 | \ '%Z%p^,' . 30 | \ '%-G%.%#' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'scala', 39 | \ 'name': 'scalac'}) 40 | 41 | let &cpo = s:save_cpo 42 | unlet s:save_cpo 43 | 44 | " vim: set sw=4 sts=4 et fdm=marker: 45 | -------------------------------------------------------------------------------- /syntax_checkers/scss/mixedindentlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: mixedindentlint.vim 3 | "Description: Mixed indentation linter for vim 4 | "Maintainer: Payton Swick 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_scss_mixedindentlint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_scss_mixedindentlint_checker = 1 16 | 17 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 18 | \ 'filetype': 'scss', 19 | \ 'name': 'mixedindentlint', 20 | \ 'redirect': 'javascript/mixedindentlint'}) 21 | 22 | " vim: set et sts=4 sw=4: 23 | -------------------------------------------------------------------------------- /syntax_checkers/scss/sass.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: scss.vim 3 | "Description: scss syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_scss_sass_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_scss_sass_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'scss', 20 | \ 'name': 'sass', 21 | \ 'redirect': 'sass/sass'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/scss/sass_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: sass_lint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_scss_sass_lint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_scss_sass_lint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'scss', 20 | \ 'name': 'sass_lint', 21 | \ 'redirect': 'sass/sass_lint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/scss/sassc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: sassc.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_scss_sassc_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_scss_sassc_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'scss', 20 | \ 'name': 'sassc', 21 | \ 'redirect': 'sass/sassc'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/sh/bashate.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: bashate.vim 3 | "Description: Bash script style checking plugin for syntastic 4 | "License: This program is free software. It comes without any warranty, 5 | " to the extent permitted by applicable law. You can redistribute 6 | " it and/or modify it under the terms of the Do What The Fuck You 7 | " Want To Public License, Version 2, as published by Sam Hocevar. 8 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 9 | " 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_sh_bashate_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_sh_bashate_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_sh_bashate_GetLocList() dict 21 | let makeprg = self.makeprgBuild({}) 22 | 23 | let errorformat = 24 | \ '%\m%f:%l:%c: %t%n %m,' . 25 | \ '%A%\s%#[%t] E%n: %m,' . 26 | \ '%EE%n: %m,' . 27 | \ '%Z - %f%\s%\+: L%l,' . 28 | \ '%-G%.%#' 29 | 30 | let loclist = SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'subtype': 'Style', 34 | \ 'returns': [0, 1] }) 35 | 36 | for e in loclist 37 | let e['text'] = substitute(e['text'], "\\m: '.*", '', '') 38 | endfor 39 | 40 | return loclist 41 | endfunction 42 | 43 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 44 | \ 'filetype': 'sh', 45 | \ 'name': 'bashate' }) 46 | 47 | let &cpo = s:save_cpo 48 | unlet s:save_cpo 49 | 50 | " vim: set sw=4 sts=4 et fdm=marker: 51 | -------------------------------------------------------------------------------- /syntax_checkers/sh/checkbashisms.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: checkbashisms.vim 3 | "Description: Shell script syntax/style checking plugin for syntastic 4 | "Notes: checkbashisms.pl can be downloaded from 5 | " http://debian.inode.at/debian/pool/main/d/devscripts/ 6 | " as part of the devscripts package. 7 | "============================================================================ 8 | 9 | if exists('g:loaded_syntastic_sh_checkbashisms_checker') 10 | finish 11 | endif 12 | let g:loaded_syntastic_sh_checkbashisms_checker = 1 13 | 14 | let s:save_cpo = &cpo 15 | set cpo&vim 16 | 17 | function! SyntaxCheckers_sh_checkbashisms_GetLocList() dict 18 | let makeprg = self.makeprgBuild({ 'args': '-fx' }) 19 | 20 | let errorformat = 21 | \ '%-Gscript %f is already a bash script; skipping,' . 22 | \ '%Eerror: %f: %m\, opened in line %l,' . 23 | \ '%Eerror: %f: %m,' . 24 | \ '%Ecannot open script %f for reading: %m,' . 25 | \ '%Wscript %f %m,%C%.# lines,' . 26 | \ '%Wpossible bashism in %f line %l (%m):,%C%.%#,%Z.%#,' . 27 | \ '%-G%.%#' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat, 32 | \ 'subtype': 'Style' }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'sh', 37 | \ 'name': 'checkbashisms' }) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/sh/shfmt.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: shfmt.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_sh_shfmt_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_sh_shfmt_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_sh_shfmt_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%f:%l:%c: %m' 26 | 27 | return SyntasticMake({ 28 | \ 'makeprg': makeprg, 29 | \ 'errorformat': errorformat, 30 | \ 'returns': [0, 1] }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'sh', 35 | \ 'name': 'shfmt'}) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/slim/slim_lint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: slim_lint.vim 3 | "Description: Slim style and syntax checker plugin for Syntastic 4 | "Maintainer: Vasily Kolesnikov 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_slim_slim_lint_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_slim_slim_lint_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_slim_slim_lint_GetLocList() dict 21 | let makeprg = self.makeprgBuild({}) 22 | 23 | let errorformat = '%f:%l [%t] %m' 24 | 25 | return SyntasticMake({ 26 | \ 'makeprg': makeprg, 27 | \ 'errorformat': errorformat, 28 | \ 'subtype': 'Style'}) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'slim', 33 | \ 'name': 'slim_lint', 34 | \ 'exec': 'slim-lint' }) 35 | 36 | let &cpo = s:save_cpo 37 | unlet s:save_cpo 38 | 39 | " vim: set sw=4 sts=4 et fdm=marker: 40 | -------------------------------------------------------------------------------- /syntax_checkers/sml/smlnj.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: smlnj.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_sml_smlnj_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_sml_smlnj_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_sml_smlnj_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%E%f:%l%\%.%c %trror: %m,' . 26 | \ '%E%f:%l%\%.%c-%\d%\+%\%.%\d%\+ %trror: %m,' . 27 | \ '%W%f:%l%\%.%c %tarning: %m,' . 28 | \ '%W%f:%l%\%.%c-%\d%\+%\%.%\d%\+ %tarning: %m,' . 29 | \ '%C%\s%\+%m,' . 30 | \ '%-G%.%#' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat, 35 | \ 'postprocess': ['compressWhitespace'], 36 | \ 'returns': [0, 1] }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'sml', 41 | \ 'name': 'smlnj', 42 | \ 'exec': 'sml'}) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | -------------------------------------------------------------------------------- /syntax_checkers/solidity/solc.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: solc.vim 3 | "Description: Solidity syntax checker - using solc 4 | "Maintainer: Jacob Cholewa 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_solidity_solc_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_solidity_solc_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_solidity_solc_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%f:%l:%c: %trror: %m,' . 26 | \ '%f:%l:%c: %tarning: %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'solidity', 35 | \ 'name': 'solc'}) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/solidity/solhint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: solhint.vim 3 | "Description: Solidity syntax checker - using solhint 4 | "Maintainer: Brett Sun 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_solidity_solhint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_solidity_solhint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_solidity_solhint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 23 | \ 'args_after': '-f compact' }) 24 | 25 | let errorformat = 26 | \ '%E%f: line %l\, col %c\, Error - %m,' . 27 | \ '%W%f: line %l\, col %c\, Warning - %m' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat, 32 | \ 'subtype': 'Style', 33 | \ 'returns': [0, 1] }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'solidity', 38 | \ 'name': 'solhint'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/solidity/solium.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: solium.vim 3 | "Description: Solidity syntax checker - using solium 4 | "Maintainer: Matthijs van den Bos 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_solidity_solium_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_solidity_solium_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_solidity_solium_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 23 | \ 'args_after': '-R gcc', 24 | \ 'fname_before': '--file'}) 25 | 26 | let errorformat = 27 | \ '%f:%l:%c: %trror: %m,' . 28 | \ '%f:%l:%c: %tarning: %m' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'returns': [0, 1] }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'solidity', 38 | \ 'name': 'solium'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/spec/rpmlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: rpmlint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_spec_rpmlint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_spec_rpmlint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_spec_rpmlint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%E%f:%l: E: %m,' . 26 | \ '%E%f: E: %m,' . 27 | \ '%W%f:%l: W: %m,' . 28 | \ '%W%f: W: %m,' . 29 | \ '%-G%.%#' 30 | 31 | return SyntasticMake({ 32 | \ 'makeprg': makeprg, 33 | \ 'errorformat': errorformat }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'spec', 38 | \ 'name': 'rpmlint'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/sql/sqlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: sqlint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Steve Purcell 5 | "License: MIT 6 | "============================================================================ 7 | 8 | if exists('g:loaded_syntastic_sql_sqlint_checker') 9 | finish 10 | endif 11 | let g:loaded_syntastic_sql_sqlint_checker = 1 12 | 13 | let s:save_cpo = &cpo 14 | set cpo&vim 15 | 16 | function! SyntaxCheckers_sql_sqlint_GetHighlightRegex(i) 17 | let term = matchstr(a:i['text'], '\m at or near "\zs[^"]\+\ze"') 18 | return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' 19 | endfunction 20 | 21 | function! SyntaxCheckers_sql_sqlint_IsAvailable() dict 22 | if !executable(self.getExec()) 23 | return 0 24 | endif 25 | return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 0, 3]) 26 | endfunction 27 | 28 | function! SyntaxCheckers_sql_sqlint_GetLocList() dict 29 | let makeprg = self.makeprgBuild({}) 30 | 31 | let errorformat = 32 | \ '%E%f:%l:%c:ERROR %m,' . 33 | \ '%W%f:%l:%c:WARNING %m,' . 34 | \ '%C %m' 35 | 36 | return SyntasticMake({ 37 | \ 'makeprg': makeprg, 38 | \ 'errorformat': errorformat, 39 | \ 'subtype': 'Style', 40 | \ 'returns': [0, 1] }) 41 | endfunction 42 | 43 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 44 | \ 'filetype': 'sql', 45 | \ 'name': 'sqlint'}) 46 | 47 | let &cpo = s:save_cpo 48 | unlet s:save_cpo 49 | 50 | " vim: set sw=4 sts=4 et fdm=marker: 51 | -------------------------------------------------------------------------------- /syntax_checkers/sql/tsqllint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: tsqllint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Daniel Walker 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_sql_tsqllint_checker') 14 | finish 15 | endif 16 | 17 | let g:loaded_syntastic_sql_tsqllint_checker = 1 18 | 19 | if exists('g:syntastic_sql_tsqllint_sort') 20 | let g:syntastic_sql_tsqllint_sort = 1 21 | endif 22 | 23 | let s:save_cpo = &cpo 24 | set cpo&vim 25 | 26 | function! SyntaxCheckers_sql_tsqllint_GetLocList() dict 27 | let makeprg = self.makeprgBuild({}) 28 | 29 | let errorformat = '%f(%l\,%c): %m' 30 | 31 | return SyntasticMake({ 32 | \ 'makeprg': makeprg, 33 | \ 'errorformat': errorformat }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'sql', 38 | \ 'name': 'tsqllint'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/svg/validator.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: validator.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_svg_validator_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_svg_validator_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'svg', 20 | \ 'name': 'validator', 21 | \ 'redirect': 'html/validator'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/svg/w3.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: w3.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Kevin Locke 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_svg_w3_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_svg_w3_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'svg', 20 | \ 'name': 'w3', 21 | \ 'redirect': 'html/w3'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/tcl/nagelfar.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: nagelfar.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: James Pickard 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | " 13 | "Notes: Requires nagelfar v1.1.12 or later with support for -H option. 14 | " See nagelfar homepage http://nagelfar.berlios.de/. 15 | 16 | if exists('g:loaded_syntastic_tcl_nagelfar_checker') 17 | finish 18 | endif 19 | let g:loaded_syntastic_tcl_nagelfar_checker = 1 20 | 21 | let s:save_cpo = &cpo 22 | set cpo&vim 23 | 24 | function! SyntaxCheckers_tcl_nagelfar_GetLocList() dict 25 | let makeprg = self.makeprgBuild({ 'args_after': '-H' }) 26 | 27 | let errorformat = 28 | \ '%I%f: %l: N %m,'. 29 | \ '%f: %l: %t %m,'. 30 | \ '%-GChecking file %f' 31 | 32 | return SyntasticMake({ 33 | \ 'makeprg': makeprg, 34 | \ 'errorformat': errorformat }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'tcl', 39 | \ 'name': 'nagelfar'}) 40 | 41 | let &cpo = s:save_cpo 42 | unlet s:save_cpo 43 | 44 | " vim: set sw=4 sts=4 et fdm=marker: 45 | -------------------------------------------------------------------------------- /syntax_checkers/tex/lacheck.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: tex.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_tex_lacheck_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_tex_lacheck_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_tex_lacheck_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = 25 | \ '%-G** %f:,' . 26 | \ '%E"%f"\, line %l: %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat }) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'tex', 35 | \ 'name': 'lacheck'}) 36 | 37 | let &cpo = s:save_cpo 38 | unlet s:save_cpo 39 | 40 | " vim: set sw=4 sts=4 et fdm=marker: 41 | -------------------------------------------------------------------------------- /syntax_checkers/tex/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_tex_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_tex_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'tex', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/texinfo/makeinfo.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: makeinfo.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_texinfo_makeinfo_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_texinfo_makeinfo_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_texinfo_makeinfo_GetHighlightRegex(item) 22 | let term = matchstr(a:item['text'], "\\m`\\zs[^']\\+\\ze'") 23 | return term !=# '' ? '\V' . escape(term, '\') : '' 24 | endfunction 25 | 26 | function! SyntaxCheckers_texinfo_makeinfo_GetLocList() dict 27 | let makeprg = self.makeprgBuild({ 'args_after': syntastic#c#NullOutput() }) 28 | 29 | let errorformat = 30 | \ '%f:%l: %tarning: %m,' . 31 | \ '%f:%l: %m,' . 32 | \ '%-G%.%#' 33 | 34 | return SyntasticMake({ 35 | \ 'makeprg': makeprg, 36 | \ 'errorformat': errorformat, 37 | \ 'type': 'e' }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'texinfo', 42 | \ 'name': 'makeinfo'}) 43 | 44 | let &cpo = s:save_cpo 45 | unlet s:save_cpo 46 | 47 | " vim: set sw=4 sts=4 et fdm=marker: 48 | -------------------------------------------------------------------------------- /syntax_checkers/texinfo/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_texinfo_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_texinfo_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'texinfo', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/text/igor.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: igor.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_text_igor_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_text_igor_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'text', 20 | \ 'name': 'igor', 21 | \ 'redirect': 'docbk/igor'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/text/language_check.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: language_check.vim 3 | "Description: Grammar checker (https://github.com/myint/language-check) 4 | "Authors: Steven Myint 5 | " 6 | "============================================================================ 7 | 8 | if exists('g:loaded_syntastic_text_language_check_checker') 9 | finish 10 | endif 11 | let g:loaded_syntastic_text_language_check_checker = 1 12 | 13 | let s:save_cpo = &cpo 14 | set cpo&vim 15 | 16 | function! SyntaxCheckers_text_language_check_GetLocList() dict 17 | let makeprg = self.makeprgBuild({}) 18 | 19 | let errorformat = 20 | \ '%f:%l:%c: %m' 21 | 22 | return SyntasticMake({ 23 | \ 'makeprg': makeprg, 24 | \ 'errorformat': errorformat, 25 | \ 'subtype': 'Style', 26 | \ 'returns': [0, 2] }) 27 | endfunction 28 | 29 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 30 | \ 'filetype': 'text', 31 | \ 'name': 'language_check', 32 | \ 'exec': 'language-check'}) 33 | 34 | let &cpo = s:save_cpo 35 | unlet s:save_cpo 36 | 37 | " vim: set sw=4 sts=4 et fdm=marker: 38 | -------------------------------------------------------------------------------- /syntax_checkers/text/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_text_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_text_proselint_checker = 1 17 | 18 | if !exists('g:syntastic_text_proselint_sort') 19 | let g:syntastic_text_proselint_sort = 1 20 | endif 21 | 22 | let s:save_cpo = &cpo 23 | set cpo&vim 24 | 25 | function! SyntaxCheckers_text_proselint_GetLocList() dict 26 | let makeprg = self.makeprgBuild({}) 27 | 28 | let errorformat = '%f:%l:%c: %m' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'defaults': { 'type': 'W', 'subtype': 'Style' }, 34 | \ 'preprocess': 'iconv', 35 | \ 'returns': [0, 1] }) 36 | endfunction 37 | 38 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 39 | \ 'filetype': 'text', 40 | \ 'name': 'proselint'}) 41 | 42 | let &cpo = s:save_cpo 43 | unlet s:save_cpo 44 | 45 | " vim: set sw=4 sts=4 et fdm=marker: 46 | -------------------------------------------------------------------------------- /syntax_checkers/text/textlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: textlint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_text_textlint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_text_textlint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_text_textlint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-f compact' }) 23 | 24 | let errorformat = 25 | \ '%f: line %l\, col %c\, %tarning - %m,' . 26 | \ '%f: line %l\, col %c\, %trror - %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'subtype': 'Style', 32 | \ 'returns': [0, 1] }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'text', 37 | \ 'name': 'textlint'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/trig/rapper.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: rapper.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Sebastian Tramp 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_trig_rapper_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_trig_rapper_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'trig', 20 | \ 'name': 'rapper', 21 | \ 'redirect': 'turtle/rapper'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/turtle/rapper.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: rapper.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Sebastian Tramp 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_turtle_rapper_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_turtle_rapper_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_turtle_rapper_GetHighlightRegex(item) 22 | let term = matchstr(a:item['text'], '\mFailed to convert qname \zs\S\+\ze to URI') 23 | return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' 24 | endfunction 25 | 26 | function! SyntaxCheckers_turtle_rapper_GetLocList() dict 27 | let makeprg = self.makeprgBuild({ 'args': '-i guess -q --count' }) 28 | 29 | let errorformat = 30 | \ 'rapper: %trror - URI file://%f:%l - %m,' . 31 | \ 'rapper: %tarning - URI file://%f:%l - %m' 32 | 33 | return SyntasticMake({ 34 | \ 'makeprg': makeprg, 35 | \ 'errorformat': errorformat, 36 | \ 'returns': [0, 1] }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'turtle', 41 | \ 'name': 'rapper'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/turtle/ttl.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: ttl.vim 3 | "Description: turtle syntax checker - using ttl from turtle-validator (npm) 4 | "Maintainer: Antoine Reilles (tonio@NetBSD.org) 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_turtle_ttl_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_turtle_ttl_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_turtle_ttl_GetHighlightRegex(item) 21 | let term = matchstr(a:item['text'], '\m"\zs[^"]\+\ze"') 22 | return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' 23 | endfunction 24 | 25 | function! SyntaxCheckers_turtle_ttl_GetLocList() dict 26 | let makeprg = self.makeprgBuild({}) 27 | 28 | let errorformat = '%\m[Error: %m %\%%(at%\|on%\) line %l%\%.]' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'defaults': {'bufnr': bufnr('')} }) 34 | endfunction 35 | 36 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 37 | \ 'filetype': 'turtle', 38 | \ 'name': 'ttl'}) 39 | 40 | let &cpo = s:save_cpo 41 | unlet s:save_cpo 42 | 43 | " vim: set sw=4 sts=4 et fdm=marker: 44 | -------------------------------------------------------------------------------- /syntax_checkers/twig/twigcs.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: twigcs.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Ciloe 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_twig_twigcs_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_twig_twigcs_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_twig_twigcs_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '--reporter=emacs' }) 23 | 24 | let errorformat = 25 | \ '%f:%l:%c: %trror - %m,' . 26 | \ '%f:%l:%c: %tarning - %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'subtype': 'Style' }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'twig', 36 | \ 'name': 'twigcs' }) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/twig/twiglint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: twig.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Alexander 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_twig_twiglint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_twig_twiglint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_twig_twiglint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 23 | \ 'args_before': 'lint', 24 | \ 'args_after': '--format=csv' }) 25 | 26 | let errorformat = '"%f"\,%l\,%m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat}) 31 | endfunction 32 | 33 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 34 | \ 'filetype': 'twig', 35 | \ 'name': 'twiglint', 36 | \ 'exec': 'twig-lint'}) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/typescript/eslint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: eslint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_typescript_eslint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_typescript_eslint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'typescript', 20 | \ 'name': 'eslint', 21 | \ 'redirect': 'javascript/eslint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/typescript/lynt.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: lynt.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_typescript_lynt_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_typescript_lynt_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'typescript', 20 | \ 'name': 'lynt', 21 | \ 'redirect': 'javascript/lynt'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/typescript/tslint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: typescript/tslint.vim 3 | "Description: TypeScript linter 4 | "Maintainer: Seon-Wook Park 5 | "============================================================================ 6 | 7 | if exists('g:loaded_syntastic_typescript_tslint_checker') 8 | finish 9 | endif 10 | let g:loaded_syntastic_typescript_tslint_checker = 1 11 | 12 | if !exists('g:syntastic_typescript_tslint_sort') 13 | let g:syntastic_typescript_tslint_sort = 1 14 | endif 15 | 16 | let s:save_cpo = &cpo 17 | set cpo&vim 18 | 19 | function! SyntaxCheckers_typescript_tslint_GetHighlightRegex(item) 20 | let term = matchstr(a:item['text'], "\\m\\s'\\zs.\\{-}\\ze'\\s") 21 | return term !=# '' ? '\V' . escape(term, '\') : '' 22 | endfunction 23 | 24 | function! SyntaxCheckers_typescript_tslint_GetLocList() dict 25 | if !exists('s:tslint_new') 26 | let s:tslint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [2, 4]) 27 | endif 28 | 29 | let makeprg = self.makeprgBuild({ 30 | \ 'args_after': '--format verbose', 31 | \ 'fname_before': (s:tslint_new ? '' : '-f') }) 32 | 33 | let errorformat = 34 | \ '%EERROR: %f[%l\, %c]: %m,' . 35 | \ '%WWARNING: %f[%l\, %c]: %m,' . 36 | \ '%E%f[%l\, %c]: %m' 37 | 38 | return SyntasticMake({ 39 | \ 'makeprg': makeprg, 40 | \ 'errorformat': errorformat, 41 | \ 'preprocess': 'tslint', 42 | \ 'subtype': 'Style', 43 | \ 'returns': [0, 2] }) 44 | endfunction 45 | 46 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 47 | \ 'filetype': 'typescript', 48 | \ 'name': 'tslint'}) 49 | 50 | let &cpo = s:save_cpo 51 | unlet s:save_cpo 52 | 53 | " vim: set sw=4 sts=4 et fdm=marker: 54 | -------------------------------------------------------------------------------- /syntax_checkers/verilog/iverilog.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: iverilog.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Psidium 5 | "License: The MIT License 6 | "============================================================================ 7 | 8 | if exists('g:loaded_syntastic_verilog_iverilog_checker') 9 | finish 10 | endif 11 | let g:loaded_syntastic_verilog_iverilog_checker = 1 12 | 13 | let s:save_cpo = &cpo 14 | set cpo&vim 15 | 16 | function! SyntaxCheckers_verilog_iverilog_GetLocList() dict 17 | let makeprg = self.makeprgBuild({ 18 | \ 'args_before': '-t null', 19 | \ 'args': '-Wall' }) 20 | 21 | let errorformat = 22 | \ '%f:%l: %trror: %m,' . 23 | \ '%f:%l: %tarning: %m,' . 24 | \ '%E%f:%l: : %m,' . 25 | \ '%W%f:%l: : %m,' . 26 | \ '%f:%l: %m' 27 | 28 | return SyntasticMake({'makeprg': makeprg, 'errorformat': errorformat}) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'verilog', 33 | \ 'name': 'iverilog'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | -------------------------------------------------------------------------------- /syntax_checkers/verilog/verilator.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: verilator.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Kocha 5 | "============================================================================ 6 | 7 | if exists('g:loaded_syntastic_verilog_verilator_checker') 8 | finish 9 | endif 10 | let g:loaded_syntastic_verilog_verilator_checker = 1 11 | 12 | if !exists('g:syntastic_verilog_compiler_options') 13 | let g:syntastic_verilog_compiler_options = '-Wall' 14 | endif 15 | 16 | let s:save_cpo = &cpo 17 | set cpo&vim 18 | 19 | function! SyntaxCheckers_verilog_verilator_IsAvailable() dict 20 | if !exists('g:syntastic_verilog_compiler') 21 | let g:syntastic_verilog_compiler = self.getExec() 22 | endif 23 | call self.log('g:syntastic_verilog_compiler =', g:syntastic_verilog_compiler) 24 | return executable(expand(g:syntastic_verilog_compiler, 1)) 25 | endfunction 26 | 27 | function! SyntaxCheckers_verilog_verilator_GetLocList() dict 28 | return syntastic#c#GetLocList('verilog', 'verilator', { 29 | \ 'errorformat': 30 | \ '%%%trror-%\=%\w%#: %f:%l:%c: %m,' . 31 | \ '%%%tarning-%\=%\w%#: %f:%l:%c: %m,' . 32 | \ '%%%trror-%\=%\w%#: %f:%l: %m,' . 33 | \ '%%%tarning-%\=%\w%#: %f:%l: %m', 34 | \ 'main_flags': '--lint-only' }) 35 | endfunction 36 | 37 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 38 | \ 'filetype': 'verilog', 39 | \ 'name': 'verilator' }) 40 | 41 | let &cpo = s:save_cpo 42 | unlet s:save_cpo 43 | 44 | " vim: set sw=4 sts=4 et fdm=marker: 45 | -------------------------------------------------------------------------------- /syntax_checkers/vhdl/ghdl.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: ghdl.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Jan Wagner 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_vhdl_ghdl_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_vhdl_ghdl_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_vhdl_ghdl_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_before': '-s' }) 23 | 24 | let errorformat = '%f:%l:%c: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'vhdl', 33 | \ 'name': 'ghdl'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | -------------------------------------------------------------------------------- /syntax_checkers/vue/eslint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: eslint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_vue_eslint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_vue_eslint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'vue', 20 | \ 'name': 'eslint', 21 | \ 'redirect': 'javascript/eslint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/vue/pug_lint_vue.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pug_lint_vue.vim 3 | "Description: Syntax checking plugin for syntastic using pug-lint-vue 4 | " (https://github.com/sourceboat/pug-lint-vue) 5 | "Maintainer: Tim Carry 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_vue_pug_lint_vue_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_vue_pug_lint_vue_checker = 1 18 | 19 | let s:save_cpo = &cpo 20 | set cpo&vim 21 | 22 | function! SyntaxCheckers_vue_pug_lint_vue_GetLocList() dict 23 | let buf = bufnr('') 24 | let makeprg = self.makeprgBuild({ 'fname': syntastic#util#shescape(fnamemodify(bufname(buf), ':p')) }) 25 | 26 | let errorformat = '%\s%#%l:%c %m' 27 | 28 | return SyntasticMake({ 29 | \ 'makeprg': makeprg, 30 | \ 'errorformat': errorformat, 31 | \ 'defaults': { 'bufnr': buf, 'type': 'E' } }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'vue', 36 | \ 'name': 'pug_lint_vue', 37 | \ 'exec': 'pug-lint-vue' }) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/vue/stylelint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: stylelint.vim 3 | "Description: Syntax checking plugin for syntastic using `stylelint` 4 | " (https://github.com/stylelint/stylelint). 5 | "Maintainer: LCD 47 6 | "License: This program is free software. It comes without any warranty, 7 | " to the extent permitted by applicable law. You can redistribute 8 | " it and/or modify it under the terms of the Do What The Fuck You 9 | " Want To Public License, Version 2, as published by Sam Hocevar. 10 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 11 | " 12 | "============================================================================ 13 | 14 | if exists('g:loaded_syntastic_vue_stylelint_checker') 15 | finish 16 | endif 17 | let g:loaded_syntastic_vue_stylelint_checker = 1 18 | 19 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 20 | \ 'filetype': 'vue', 21 | \ 'name': 'stylelint', 22 | \ 'redirect': 'css/stylelint'}) 23 | 24 | " vim: set sw=4 sts=4 et fdm=marker: 25 | -------------------------------------------------------------------------------- /syntax_checkers/xhtml/jshint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: jshint.vim 3 | "Description: Javascript syntax checker for xHTML - using jshint 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_xhtml_jshint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_xhtml_jshint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'xhtml', 20 | \ 'name': 'jshint', 21 | \ 'redirect': 'html/jshint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/xhtml/proselint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: proselint.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_xhtml_proselint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_xhtml_proselint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'xhtml', 20 | \ 'name': 'proselint', 21 | \ 'redirect': 'text/proselint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/xhtml/validator.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: validator.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_xhtml_validator_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_xhtml_validator_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'xhtml', 20 | \ 'name': 'validator', 21 | \ 'redirect': 'html/validator'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/xhtml/w3.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: w3.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Kevin Locke 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_xhtml_w3_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_xhtml_w3_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'xhtml', 20 | \ 'name': 'w3', 21 | \ 'redirect': 'html/w3'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/xml/plutil.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: plutil.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: LCD 47 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_xml_plutil_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_xml_plutil_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_xml_plutil_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 23 | \ 'args_before': '-lint -s', 24 | \ 'fname_before': '--' }) 25 | 26 | let errorformat = 27 | \ '%E%f: %m at line %l' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat, 32 | \ 'returns': [0, 1] }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'xml', 37 | \ 'name': 'plutil'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/xquery/basex.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: basex.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: James Wright 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " 10 | "============================================================================ 11 | 12 | if exists('g:loaded_syntastic_xquery_basex_checker') 13 | finish 14 | endif 15 | let g:loaded_syntastic_xquery_basex_checker = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | 20 | function! SyntaxCheckers_xquery_basex_GetLocList() dict 21 | let buf = bufnr('') 22 | let makeprg = self.makeprgBuild({ 23 | \ 'args_after': '-z', 24 | \ 'fname_before': '-q', 25 | \ 'fname': syntastic#util#shescape('inspect:module("' . escape(fnamemodify(bufname(buf), ':p'), '"') . '")') }) 26 | 27 | let errorformat = 28 | \ '%f:%l:%c:%t:%n:%m,' . 29 | \ '%m' 30 | 31 | let loclist = SyntasticMake({ 32 | \ 'makeprg': makeprg, 33 | \ 'errorformat': errorformat, 34 | \ 'preprocess': 'basex' }) 35 | 36 | for e in loclist 37 | if e['type'] !=# 'W' && e['type'] !=# 'E' 38 | let e['type'] = 'E' 39 | endif 40 | endfor 41 | 42 | return loclist 43 | endfunction 44 | 45 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 46 | \ 'filetype': 'xquery', 47 | \ 'name': 'basex'}) 48 | 49 | let &cpo = s:save_cpo 50 | unlet s:save_cpo 51 | 52 | " vim: set sw=4 sts=4 et fdm=marker: 53 | -------------------------------------------------------------------------------- /syntax_checkers/xslt/xmllint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: xslt.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Sebastian Kusnier 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_xslt_xmllint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_xslt_xmllint_checker = 1 17 | 18 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 19 | \ 'filetype': 'xslt', 20 | \ 'name': 'xmllint', 21 | \ 'redirect': 'xml/xmllint'}) 22 | 23 | " vim: set sw=4 sts=4 et fdm=marker: 24 | -------------------------------------------------------------------------------- /syntax_checkers/yaml/jsyaml.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: yaml.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_yaml_jsyaml_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_yaml_jsyaml_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_yaml_jsyaml_GetLocList() dict 22 | if !exists('s:js_yaml_new') 23 | let s:js_yaml_new = syntastic#util#versionIsAtLeast(self.getVersion(), [2]) 24 | endif 25 | 26 | let makeprg = self.makeprgBuild({ 'args_after': (s:js_yaml_new ? '' : '--compact') }) 27 | 28 | let errorformat = 29 | \ 'Error on line %l\, col %c:%m,' . 30 | \ 'JS-YAML: %m at line %l\, column %c:,' . 31 | \ 'YAMLException: %m at line %l\, column %c:,' . 32 | \ '%-G%.%#' 33 | 34 | return SyntasticMake({ 35 | \ 'makeprg': makeprg, 36 | \ 'errorformat': errorformat, 37 | \ 'defaults': {'bufnr': bufnr('')} }) 38 | endfunction 39 | 40 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 41 | \ 'filetype': 'yaml', 42 | \ 'name': 'jsyaml', 43 | \ 'exec': 'js-yaml'}) 44 | 45 | let &cpo = s:save_cpo 46 | unlet s:save_cpo 47 | 48 | " vim: set sw=4 sts=4 et fdm=marker: 49 | -------------------------------------------------------------------------------- /syntax_checkers/yaml/yamllint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: yamllint.vim 3 | "Description: YAML files linting for syntastic 4 | "Maintainer: Adrien Vergé 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_yaml_yamllint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_yaml_yamllint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_yaml_yamllint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-f parsable' }) 23 | 24 | let errorformat = 25 | \ '%f:%l:%c: [%trror] %m,' . 26 | \ '%f:%l:%c: [%tarning] %m' 27 | 28 | let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' } 29 | 30 | let loclist = SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat, 33 | \ 'env': env, 34 | \ 'returns': [0, 1] }) 35 | 36 | for e in loclist 37 | if e['type'] ==? 'W' 38 | let e['subtype'] = 'Style' 39 | endif 40 | endfor 41 | 42 | return loclist 43 | endfunction 44 | 45 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 46 | \ 'filetype': 'yaml', 47 | \ 'name': 'yamllint' }) 48 | 49 | let &cpo = s:save_cpo 50 | unlet s:save_cpo 51 | 52 | " vim: set sw=4 sts=4 et fdm=marker: 53 | -------------------------------------------------------------------------------- /syntax_checkers/yang/pyang.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: pyang.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Authors: joshua.downer@gmail.com 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_yang_pyang_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_yang_pyang_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_yang_pyang_GetHighlightRegex(item) 22 | let term = matchstr(a:item['text'], '\m"\zs[^"]\+\ze"') 23 | return term != '' ? '\V\<' . escape(term, '\') . '\>' : '' 24 | endfunction 25 | 26 | function! SyntaxCheckers_yang_pyang_GetLocList() dict 27 | let makeprg = self.makeprgBuild({}) 28 | 29 | let errorformat = 30 | \ '%f:%l: %trror: %m,' . 31 | \ '%f:%l: %tarning: %m' 32 | 33 | return SyntasticMake({ 34 | \ 'makeprg': makeprg, 35 | \ 'errorformat': errorformat, 36 | \ 'postprocess': ['filterForeignErrors'] }) 37 | endfunction 38 | 39 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 40 | \ 'filetype': 'yang', 41 | \ 'name': 'pyang'}) 42 | 43 | let &cpo = s:save_cpo 44 | unlet s:save_cpo 45 | 46 | " vim: set sw=4 sts=4 et fdm=marker: 47 | -------------------------------------------------------------------------------- /syntax_checkers/yara/yara.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: yara.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Albert Song (albb@teamt5.org) 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_yara_yarac_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_yara_yarac_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_yara_yarac_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'fname_after' : syntastic#util#DevNull() }) 23 | 24 | let errorformat = 25 | \ '%f(%l): %trror: %m,' . 26 | \ '%f(%l): %tarning: %m,' . 27 | \ '%f(%l): %m' 28 | 29 | return SyntasticMake({ 30 | \ 'makeprg': makeprg, 31 | \ 'errorformat': errorformat }) 32 | endfunction 33 | 34 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 35 | \ 'filetype': 'yara', 36 | \ 'name': 'yarac'}) 37 | 38 | let &cpo = s:save_cpo 39 | unlet s:save_cpo 40 | 41 | " vim: set sw=4 sts=4 et fdm=marker: 42 | -------------------------------------------------------------------------------- /syntax_checkers/z80/z80syntaxchecker.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: z80syntaxchecker.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Romain Giot 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_z80_z80syntaxchecker_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_z80_z80syntaxchecker_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_z80_z80syntaxchecker_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat = '%f:%l %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat }) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'z80', 33 | \ 'name': 'z80syntaxchecker', 34 | \ 'exec': 'z80_syntax_checker.py'}) 35 | 36 | let &cpo = s:save_cpo 37 | unlet s:save_cpo 38 | 39 | " vim: set sw=4 sts=4 et fdm=marker: 40 | -------------------------------------------------------------------------------- /syntax_checkers/zpt/zptlint.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: zpt.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: claytron 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_zpt_zptlint_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_zpt_zptlint_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_zpt_zptlint_GetLocList() dict 22 | let makeprg = self.makeprgBuild({}) 23 | 24 | let errorformat= 25 | \ '%-P*** Error in: %f,'. 26 | \ '%Z%*\s\, at line %l\, column %c,'. 27 | \ '%E%*\s%m,'. 28 | \ '%-Q' 29 | 30 | return SyntasticMake({ 31 | \ 'makeprg': makeprg, 32 | \ 'errorformat': errorformat }) 33 | endfunction 34 | 35 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 36 | \ 'filetype': 'zpt', 37 | \ 'name': 'zptlint'}) 38 | 39 | let &cpo = s:save_cpo 40 | unlet s:save_cpo 41 | 42 | " vim: set sw=4 sts=4 et fdm=marker: 43 | -------------------------------------------------------------------------------- /syntax_checkers/zsh/zsh.vim: -------------------------------------------------------------------------------- 1 | "============================================================================ 2 | "File: zsh.vim 3 | "Description: Syntax checking plugin for syntastic 4 | "Maintainer: Martin Grenfell 5 | "License: This program is free software. It comes without any warranty, 6 | " to the extent permitted by applicable law. You can redistribute 7 | " it and/or modify it under the terms of the Do What The Fuck You 8 | " Want To Public License, Version 2, as published by Sam Hocevar. 9 | " See http://sam.zoy.org/wtfpl/COPYING for more details. 10 | " 11 | "============================================================================ 12 | 13 | if exists('g:loaded_syntastic_zsh_zsh_checker') 14 | finish 15 | endif 16 | let g:loaded_syntastic_zsh_zsh_checker = 1 17 | 18 | let s:save_cpo = &cpo 19 | set cpo&vim 20 | 21 | function! SyntaxCheckers_zsh_zsh_GetLocList() dict 22 | let makeprg = self.makeprgBuild({ 'args_after': '-n' }) 23 | 24 | let errorformat = '%f:%l: %m' 25 | 26 | return SyntasticMake({ 27 | \ 'makeprg': makeprg, 28 | \ 'errorformat': errorformat}) 29 | endfunction 30 | 31 | call g:SyntasticRegistry.CreateAndRegisterChecker({ 32 | \ 'filetype': 'zsh', 33 | \ 'name': 'zsh'}) 34 | 35 | let &cpo = s:save_cpo 36 | unlet s:save_cpo 37 | 38 | " vim: set sw=4 sts=4 et fdm=marker: 39 | --------------------------------------------------------------------------------