From 3c2c5a76a0e7f9e418f2b04c9932a1fe6d208452 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sun, 7 Feb 2016 10:47:12 -0800 Subject: [PATCH] Squashed 'vim/bundle/syntastic/' changes from 56e19eb81..89bc82a26 89bc82a26 Manual: add a note about debugging. b2ad71cd1 Manual: add a clarification about statusline. d8af5028e Bug fix: Cygwin sets has("unix"). de0106e83 JSCS checker: add "--max-errors -1" option. cc440f1b4 Checker yamllint: cleanup. 8c4dadc7e New checker for YAML: yamllint (@adrienverge). 972b87ca0 Safer syntastic#util#unique(). d1a179d75 Vim 7.4.1128 can delete directories recursively. 1f4846fec Stylelint checker can also check SCSS files. 2db6f539d Checker scss_lint: use the JSON reporter of scss-lint. b10c59b21 Manual: clarification about quiet_messages. c57ba0da9 Asciidoc checker: fix errorformat to allow use as asciidoctor. e39f636e2 Flow checker: go back to "flow check". 17a4c0123 Checker ghc_mod is on its way out. 189be0ae7 Workaround for a misfeature in Vim 7.4.1013 and later. 3280220e6 JSCS checker bug fix: minor fallouts from 751afea. 91814d672 Manual: bit rot: vim-go now uses loclists. 751afea9e JSCS checker: use JSON reporter. dbd761006 Minor feature: auto_loc_list == 3. 281b29487 Avoid checking the preview window. 6074c3d39 Stylelint checker: update parser. 48736aa37 Mixedindentlint is a style checker. ac4541e0e Minor cleanup. ce8dd364f Add `returns` list to `SyntasticMake` 6be9b4c71 Add mixedindentlint checker redirect for css a0382253c Add mixedindentlint checker redirect for scss 7d27a3982 Add mixedindentlint checker for JavaScript 60f979393 R linters: minor cleanup. 06a846955 Checker tsc: add guards option. e60555de7 Registry: cleaner handling of checker redirections. 4725c8616 Lintr checker: cleanup. bf60b72f3 Attempt support for Rmd files 4078f0db8 Updates for newest syntastic best practices f92adf3c9 Enable R linting using lintr 2d0bb98cf Allow ESLint to check typescript files. 77e20e22d Bug fix: decouple skip_checks from check_on_wq. 70c723ac1 Back off 6379bd1, this is not safe. 6379bd198 /dev/null should work under win32unix. dc516ef19 Checker asm/gcc: allow generic overrides. 6d2e406f9 Slim_lint checker: cleanup. 46c692b51 Add slim-lint checker 200cd1d07 Merge remote-tracking branch 'origin/pr/1609' 3f9fde2c1 fix miss test classpath 4f1e3adf3 correct pymode lint variable name in documentation 73dd78548 Dockerfile_lint checker: cleanup. 13456d5a7 Add dockerfile-lint checker 10788ac8d Javac checker: cleanup. 094c3631c fix maven project which has set srcdir or testsrc dir 3593d1697 fix maven project which has set srcdir or testsrc dir cd40fe975 Ansible-lint checker: make "-p" option mandatory. 13c8e7530 Ansible-lint checker: add version check. 7d627000c Checkers clang_check and clang_tidy: workaround for a regression in Clang. 721a42d5b Ansible-lint checker: cleanup. f8e638d28 Add ansible-lint syntax checkers 85cde9235 Core: disable autocommand nesting by default. d79d77fbd Core: allow syntastic commands to be followed by other Vim commands. ae7e00aad Revert "Javac checker: minor optimisation." cfdcdfaa9 Javac checker: minor optimisation. 03c058ea5 Typo. dec5bc73b New checker vcom for VHDL (@jevogel). 9f599a161 Standard checker: allow generic standard frontends. 943923433 Typo. 646124823 Back off a4c3fcc for slimrb. 630169bfc Stylelint checker: typo. c596b6474 Stylelint checker: cleanup. 1d5a057a0 Add CSS Stylelint checker a4c3fcc4a Partial workaround for a misfeature of errorformat. 1926693d1 Coqtop checker: fix potentially harmful errorformat. 11ca31582 Iverilog checker: formatting. d51d5ea51 Merge remote-tracking branch 'origin/pr/1579' 448b6cc61 add MIT license to iverilog.vim e484ac941 BaseX: allow filenames to contain special characters. 2553f6389 BaseX checker: minor cleanup. 50653f0bc BaseX checker: cleanup. 89ad03b2e conform iverilog to makeprgBuild() 5bf9fa749 Add support for Icarus Verilog compiler 3c524a661 Added support for XQuery using BaseX.exe f6eaf7e8b README: add links to ghcmod-vim and vim-go. 544acba17 ghc-mod versions 5.4.0 and later are no longer supported. f57cc9e84 Bump version number. 1b6c70ddc Merge remote-tracking branch 'origin/pr/1573' 160446799 [drafter] Update known status code 72b704e6f Bump version. d36bc7807 Bump version for release. 7e26d3589 Merge remote-tracking branch 'origin/pr/1567' ba62f2e68 API Blueprint should use drafter e1217a888 Manual: cross reference skip_checks from the filtering section. b3ebf94ac Manual: fix typo. 50d031583 Vimlint checker: add logging. d3130d6b5 Minor cleanup. b8aef009b Bug fix: length of composite characters in stl_format. 66f4e9693 Eslint checker: log if called as a generic frontend. c34ea8955 Eslint checker: allow generic eslint frontends. e0a3cf753 Add width controls to the new stl_format flags. d73d7601c New flags for stl_format: %ne, %nw, %N, %pe, %pw, %P. 03c8a7b55 README: add a link to the Merlin project. 1885e867b Checkstyle checker: make checkstyle_classpath an actual classpath. debcecd5c Checker gometalinter: minor cleanup. f2084e9e4 Checker gometalinter: fix arguments. 9371aafa8 Minor cleanup: regex optimisation. 8bb535bd2 Checker gometalinter: cleanup. 3db525cac include test files by default. add error type. aca4d8ea4 add support for setting arguments on gometalinter f1f7deed3 use package instead of file 61b7dbf9c add gometalinter syntax checker 8164240f6 Hlint: handle hint file parsing errors. 1e7589fe5 Back off "Reset notifiers if skip_checks is set." 6a4262251 Reset notifiers if skip_checks is set. be111259e js-yaml checker: update errorformat. 1be907716 Javac checker: make checker-specific commands available at startup. 3fb986584 Go checker: option "-buildmode=archive" is new in go 1.5. 703287c76 Checker jade_lint: cleanup. b5883c80f Add jade-lint 0fe603595 Bug fix: minor shell escape issue. d077102eb Gotype checker: parse test files (@jonasi). 3c2e7e4ce Go checker: attempt to speed up builds (@gsalgado). 13727dd46 Set the GOGC env var to off to speed up go builds 47c70b3e1 Minor language and grammar fixes. 7014a52ac Manual: update the note about zsh. 1ae5589f9 Javac checker: attempt at fixing errorformat. 3fb8281a6 Bug fix: missing a couple of executable() checks. 748725c77 Tslint checker: version 2.4.0 and later no longer support "-f". bfc55793e ESLint checker: line numbers are now 1-based. a01107ffa Bug fix: safer handling of automatic includes. 9d69f4c16 Qmllint checker: cleanup. 6ff7c8934 New checker for qml: qmllint edde4c5ed New checker for stylus: stylint. 74586ff12 Manual: consistency fixes. 07f2745eb Manual: rephrase description of check_on_wq. d26c7f78c Bug fix: passive mode UI problem; autocmd cleanup. a6012f2b4 Move floating point functions to autoload. bcb4ca6e7 Safety net for enable_*_checker variables. 6929f24e4 Flog checker: cleanup. 5db87b9ec Add ruby flog checker 76ec53f18 Sqlint checker now returns 1 when it detects errors. aded15691 Bug fix: leftover from JSON cleanup. 1dde81a68 There is no such thing as has('iconv/dyn'). d35396286 Sqlint checker: add highlighting function. 1e475a7df Sqlint checker: cleanup. 125ce327e Add checker for sqlint (https://github.com/purcell/sqlint) ffcf625fc Minor cleanup. c44cb15c4 Cleanup: JSON decoding. eba7ae6d6 Debug: add indicator for modified shell-related options. 83829b766 Minor bug fix. 74fd7e6b9 Show chacker output when whining that we can't parse version string. 2e60dd4af Manual: add a note about Tim Pope's "flagship". 59513edd4 Manual: fix the notice about rvm. a596ef38b Gfortran checker: fix errorformat for gfortran 5. b1b79009e Manual: Fix filetype_map example. 4708cdd12 Add a mechanism for handling checkers disabled for security. d75f3e5e8 Buffer-local security guards for perl/perl, elixirelixir, and r/svtools. a08221e98 Merge pull request #1463 from lavrin/erlang-rebar-rel-paths 0154e9d09 Translate relative paths from non-root rebar.config files 8e672780e Show checker output along with "checker returned abnormal status". 31cba018b Safety net: avoid suffixesadd interfering with findfile(). 176e32ca4 Cleanup. c9fc0d41e Checker javac: _really_ fix shell escaping in custom_classpath_command. dc15fa08c Checker javac: fix shell escaping in custom_classpath_command. c39563d95 Checker javac: cleanup. ec9da6732 Merge remote-tracking branch 'origin/pr/1456' dbb28cd84 Ada checker: disable generation of intermediate files. 8269ba278 Basic path substitution for g:syntastic_java_javac_custom_classpath_command git-subtree-dir: vim/bundle/syntastic git-subtree-split: 89bc82a2640414be38a22de9ded1994359c56735 --- CONTRIBUTING.md | 6 +- README.markdown | 43 ++- autoload/syntastic/c.vim | 34 +- autoload/syntastic/log.vim | 31 +- autoload/syntastic/preprocess.vim | 364 +++++++++++++++--- autoload/syntastic/util.vim | 167 ++++++-- doc/syntastic.txt | 271 ++++++++----- plugin/syntastic.vim | 98 ++++- plugin/syntastic/autoloclist.vim | 6 +- plugin/syntastic/checker.vim | 58 ++- plugin/syntastic/loclist.vim | 28 +- plugin/syntastic/registry.vim | 45 ++- syntax_checkers/ada/gcc.vim | 4 +- syntax_checkers/ansible/ansible_lint.vim | 52 +++ .../{snowcrash.vim => drafter.vim} | 16 +- syntax_checkers/asciidoc/asciidoc.vim | 16 +- syntax_checkers/asm/gcc.vim | 9 +- syntax_checkers/bro/bro.vim | 8 +- syntax_checkers/c/clang_check.vim | 3 + syntax_checkers/c/clang_tidy.vim | 3 + syntax_checkers/c/pc_lint.vim | 2 +- syntax_checkers/coffee/coffeelint.vim | 9 +- syntax_checkers/coq/coqtop.vim | 2 +- syntax_checkers/cpp/clang_check.vim | 2 - syntax_checkers/cpp/clang_tidy.vim | 2 - syntax_checkers/cpp/cppcheck.vim | 2 - syntax_checkers/cpp/oclint.vim | 2 - syntax_checkers/cpp/pc_lint.vim | 2 - syntax_checkers/css/mixedindentlint.vim | 22 ++ syntax_checkers/css/phpcs.vim | 2 - syntax_checkers/css/recess.vim | 2 - syntax_checkers/css/stylelint.vim | 47 +++ syntax_checkers/docbk/xmllint.vim | 2 - .../dockerfile/dockerfile_lint.vim | 53 +++ syntax_checkers/elixir/elixir.vim | 11 +- syntax_checkers/erlang/erlang_check_file.erl | 21 +- syntax_checkers/fortran/gfortran.vim | 4 +- syntax_checkers/go/go.vim | 13 +- syntax_checkers/go/gometalinter.vim | 53 +++ syntax_checkers/go/gotype.vim | 4 +- syntax_checkers/go/govet.vim | 2 +- syntax_checkers/haskell/ghc-mod.vim | 20 +- syntax_checkers/haskell/hlint.vim | 1 + syntax_checkers/haxe/haxe.vim | 2 +- syntax_checkers/jade/jade_lint.vim | 40 ++ syntax_checkers/java/checkstyle.vim | 36 +- syntax_checkers/java/javac.vim | 73 ++-- syntax_checkers/javascript/eslint.vim | 32 +- syntax_checkers/javascript/flow.vim | 4 +- syntax_checkers/javascript/jscs.vim | 15 +- syntax_checkers/javascript/jsxhint.vim | 15 +- .../javascript/mixedindentlint.vim | 40 ++ syntax_checkers/javascript/standard.vim | 10 +- syntax_checkers/nix/nix.vim | 9 +- syntax_checkers/nroff/igor.vim | 2 - syntax_checkers/objc/oclint.vim | 2 - syntax_checkers/objcpp/oclint.vim | 2 - syntax_checkers/perl/perl.vim | 9 +- syntax_checkers/perl/podchecker.vim | 2 - syntax_checkers/python/mypy.vim | 5 +- syntax_checkers/python/pylint.vim | 13 +- syntax_checkers/qml/qmllint.vim | 39 ++ syntax_checkers/r/lint.vim | 1 - syntax_checkers/r/lintr.vim | 81 ++++ syntax_checkers/r/svtools.vim | 8 +- syntax_checkers/rmd/lintr.vim | 23 ++ syntax_checkers/rst/sphinx.vim | 12 +- syntax_checkers/ruby/flog.vim | 72 ++++ syntax_checkers/scss/mixedindentlint.vim | 22 ++ syntax_checkers/scss/sass.vim | 2 - syntax_checkers/scss/sassc.vim | 2 - syntax_checkers/scss/scss_lint.vim | 13 +- syntax_checkers/scss/stylelint.vim | 23 ++ syntax_checkers/slim/slim_lint.vim | 39 ++ syntax_checkers/sql/sqlint.vim | 50 +++ syntax_checkers/stylus/stylint.vim | 43 +++ syntax_checkers/text/igor.vim | 2 - syntax_checkers/typescript/eslint.vim | 23 ++ syntax_checkers/typescript/tsc.vim | 34 +- syntax_checkers/typescript/tslint.vim | 6 +- syntax_checkers/verilog/iverilog.vim | 38 ++ syntax_checkers/vhdl/vcom.vim | 55 +++ syntax_checkers/vim/vimlint.vim | 2 + syntax_checkers/xhtml/jshint.vim | 2 - syntax_checkers/xquery/basex.vim | 51 +++ syntax_checkers/xslt/xmllint.vim | 2 - syntax_checkers/yaml/jsyaml.vim | 1 + syntax_checkers/yaml/yamllint.vim | 52 +++ 88 files changed, 2062 insertions(+), 489 deletions(-) create mode 100644 syntax_checkers/ansible/ansible_lint.vim rename syntax_checkers/apiblueprint/{snowcrash.vim => drafter.vim} (82%) create mode 100644 syntax_checkers/css/mixedindentlint.vim create mode 100644 syntax_checkers/css/stylelint.vim create mode 100644 syntax_checkers/dockerfile/dockerfile_lint.vim create mode 100644 syntax_checkers/go/gometalinter.vim create mode 100644 syntax_checkers/jade/jade_lint.vim create mode 100644 syntax_checkers/javascript/mixedindentlint.vim create mode 100644 syntax_checkers/qml/qmllint.vim create mode 100644 syntax_checkers/r/lintr.vim create mode 100644 syntax_checkers/rmd/lintr.vim create mode 100644 syntax_checkers/ruby/flog.vim create mode 100644 syntax_checkers/scss/mixedindentlint.vim create mode 100644 syntax_checkers/scss/stylelint.vim create mode 100644 syntax_checkers/slim/slim_lint.vim create mode 100644 syntax_checkers/sql/sqlint.vim create mode 100644 syntax_checkers/stylus/stylint.vim create mode 100644 syntax_checkers/typescript/eslint.vim create mode 100644 syntax_checkers/verilog/iverilog.vim create mode 100644 syntax_checkers/vhdl/vcom.vim create mode 100644 syntax_checkers/xquery/basex.vim create mode 100644 syntax_checkers/yaml/yamllint.vim diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 378b53b..9c78aa3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -40,8 +40,8 @@ too: Before you consider adding features to syntastic, _please_ spend a few minutes (re-)reading the latest version of the [manual][1]. Syntastic -is changing rapidly at times, and it's quite possible that some of the -features you want to add exist already. +is changing rapidly at times, and it's quite possible that some features +you want to add exist already. To submit a patch: @@ -54,7 +54,7 @@ Small, focused patches are preferred. Large changes to the code should be discussed with the core team first. Create an issue and explain your plan and see what we say. -Also make sure to update the manual whenever applicable. Nobody can use +Also, make sure to update the manual whenever applicable. Nobody can use features that aren't documented. diff --git a/README.markdown b/README.markdown index b9e08c4..aa5d842 100644 --- a/README.markdown +++ b/README.markdown @@ -35,7 +35,7 @@ 4.8. [How can I pass additional arguments to a checker?](#faqargs) 4.9. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers) 4.10. [What is the difference between syntax checkers and style checkers?](#faqstyle) -4.11. [I have enabled multiple checkers for the current filetype. How can I display all of the errors from all of the checkers together?](#faqaggregate) +4.11. [I have enabled multiple checkers for the current filetype. How can I display all errors from all checkers together?](#faqaggregate) 4.12. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext) 4.13. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete) 5. [Resources](#otherresources) @@ -53,22 +53,23 @@ are detected, the user is notified and is happy because they didn't have to compile their code or execute their script to find them. At the time of this writing, syntastic has checking plugins for ActionScript, -Ada, API Blueprint, AppleScript, AsciiDoc, ASM, BEMHTML, Bro, Bourne shell, C, -C++, C#, Cabal, Chef, CoffeeScript, Coco, Coq, CSS, Cucumber, CUDA, D, Dart, -DocBook, Dust, Elixir, Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, -Haskell, Haxe, Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS, Lex, -Limbo, LISP, LLVM intermediate language, Lua, Markdown, MATLAB, Mercury, NASM, -Nix, Objective-C, Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable -Object, OS X and iOS property lists, Puppet, Python, R, Racket, Relax NG, -reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Sphinx, Tcl, -TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml, XML, XSLT, +Ada, Ansible configurations, API Blueprint, AppleScript, AsciiDoc, ASM, +BEMHTML, Bro, Bourne shell, C, C++, C#, Cabal, Chef, CoffeeScript, Coco, Coq, +CSS, Cucumber, CUDA, D, Dart, DocBook, Dockerfile, Dust, Elixir, Erlang, +eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, Haskell, Haxe, Handlebars, +HSS, HTML, Jade, Java, JavaScript, JSON, JSX, LESS, Lex, Limbo, LISP, LLVM +intermediate language, Lua, Markdown, MATLAB, Mercury, NASM, Nix, Objective-C, +Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable Object, OS X and +iOS property lists, Puppet, Python, QML, R, Racket, Relax NG, reStructuredText, +RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Sphinx, SQL, Stylus, Tcl, TeX, +Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml, XML, XSLT, XQuery, YACC, YAML, z80, Zope page templates, and zsh. See the [wiki][3] for details about the corresponding supported checkers. A number of third-party Vim plugins also provide checkers for syntastic, -for example: [omnisharp-vim][25], [rust.vim][12], [syntastic-extras][26], -[syntastic-more][27], [vim-crystal][29], [vim-eastwood][28], and -[vim-swift][24]. +for example: [merlin][30], [omnisharp-vim][25], [rust.vim][12], +[syntastic-extras][26], [syntastic-more][27], [vim-crystal][29], +[vim-eastwood][28], and [vim-swift][24]. Below is a screenshot showing the methods that Syntastic uses to display syntax errors. Note that, in practise, you will only have a subset of these methods @@ -159,10 +160,10 @@ following: ## 3\. Recommended settings -Syntastic has a large number of options that can be configured, and the -defaults are not particularly well suitable for new users. It is recommended -that you start by adding the following lines to your `vimrc` file, and return -to them after reading the manual (see `:help syntastic` in Vim): +Syntastic has numerous options that can be configured, and the defaults +are not particularly well suitable for new users. It is recommended +that you start by adding the following lines to your `vimrc` file, and +return to them after reading the manual (see `:help syntastic` in Vim): ```vim set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} @@ -380,7 +381,7 @@ See `:help syntastic_quiet_messages` for details. __4.11. Q. I have enabled multiple checkers for the current filetype. How can I -display all of the errors from all of the checkers together?__ +display all errors from all checkers together?__ A. Set `g:syntastic_aggregate_errors` to 1 in your `vimrc`: ```vim @@ -427,7 +428,8 @@ There are also a dedicated [google group][5], and a Syntastic aims to provide a common interface to syntax checkers for as many languages as possible. For particular languages, there are, of course, other plugins that provide more functionality than syntastic. You might want to take -a look at [jedi-vim][7], [python-mode][8], or [YouCompleteMe][9]. +a look at [ghcmod-vim][31], [jedi-vim][7], [python-mode][8], [vim-go][32], or +[YouCompleteMe][9]. [0]: https://github.com/scrooloose/syntastic/raw/master/_assets/screenshot_1.png [1]: https://github.com/tpope/vim-pathogen @@ -459,6 +461,9 @@ a look at [jedi-vim][7], [python-mode][8], or [YouCompleteMe][9]. [27]: https://github.com/roktas/syntastic-more [28]: https://github.com/venantius/vim-eastwood [29]: https://github.com/rhysd/vim-crystal +[30]: https://github.com/the-lambda-church/merlin +[31]: https://github.com/eagletmt/ghcmod-vim +[32]: https://github.com/fatih/vim-go