mirror of
https://github.com/amix/vimrc
synced 2025-06-23 23:15:01 +08:00
Updated plugins
This commit is contained in:
@ -30,16 +30,17 @@
|
||||
4.4. [Are there any local checkers for HTML5 that I can use with syntastic?](#faqhtml5)
|
||||
4.5. [The `perl` checker has stopped working...](#faqperl)
|
||||
4.6. [What happened to the `rustc` checker?](#faqrust)
|
||||
4.7. [What happened to the `xcrun` checker?](#faqxcrun)
|
||||
4.8. [I run a checker and the location list is not updated...](#faqloclist)
|
||||
4.8. [I run`:lopen` or `:lwindow` and the error window is empty...](#faqloclist)
|
||||
4.9. [How can I pass additional arguments to a checker?](#faqargs)
|
||||
4.10. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers)
|
||||
4.11. [What is the difference between syntax checkers and style checkers?](#faqstyle)
|
||||
4.12. [I have enabled multiple checkers for the current filetype. How can I display all errors from all checkers together?](#faqaggregate)
|
||||
4.13. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext)
|
||||
4.14. [My favourite checker needs to load a configuration file from the project's root rather than the current directory...](#faqconfig)
|
||||
4.15. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete)
|
||||
4.7. [What happened to the `tsc` checker?](#faqtsc)
|
||||
4.8. [What happened to the `xcrun` checker?](#faqxcrun)
|
||||
4.9. [I run a checker and the location list is not updated...](#faqloclist)
|
||||
4.9. [I run`:lopen` or `:lwindow` and the error window is empty...](#faqloclist)
|
||||
4.10. [How can I pass additional arguments to a checker?](#faqargs)
|
||||
4.11. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers)
|
||||
4.12. [What is the difference between syntax checkers and style checkers?](#faqstyle)
|
||||
4.13. [I have enabled multiple checkers for the current filetype. How can I display all errors from all checkers together?](#faqaggregate)
|
||||
4.14. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext)
|
||||
4.15. [My favourite checker needs to load a configuration file from the project's root rather than the current directory...](#faqconfig)
|
||||
4.16. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete)
|
||||
5. [Resources](#otherresources)
|
||||
|
||||
- - -
|
||||
@ -54,26 +55,26 @@ can be done on demand, or automatically as files are saved. If syntax errors
|
||||
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, Ansible configurations, API Blueprint, AppleScript, AsciiDoc, Assembly
|
||||
languages, 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, 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, Pug (formerly Jade), Puppet, Python,
|
||||
QML, R, Racket, RDF TriG, RDF Turtle, 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, YANG data models, z80, Zope page templates, and Zsh. See the
|
||||
[manual][checkers] for details about the corresponding supported checkers
|
||||
(`:help syntastic-checkers` in Vim).
|
||||
At the time of this writing, syntastic has checking plugins for ACPI
|
||||
Source Language, ActionScript, Ada, Ansible configurations, API Blueprint,
|
||||
AppleScript, AsciiDoc, Assembly languages, 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, 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, Pug (formerly
|
||||
Jade), Puppet, Python, QML, R, Racket, RDF TriG, RDF Turtle, 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, YANG data models, z80, Zope page templates, and
|
||||
Zsh. See the [manual][checkers] for details about the corresponding supported
|
||||
checkers (`:help syntastic-checkers` in Vim).
|
||||
|
||||
A number of third-party Vim plugins also provide checkers for syntastic,
|
||||
for example: [merlin][merlin], [omnisharp-vim][omnisharp], [rust.vim][rust],
|
||||
[syntastic-extras][myint], [syntastic-more][roktas], [vim-crystal][crystal],
|
||||
[vim-eastwood][eastwood], and [vim-swift][swift].
|
||||
A number of third-party Vim plugins also provide checkers for syntastic, for
|
||||
example: [merlin][merlin], [omnisharp-vim][omnisharp], [rust.vim][rust],
|
||||
[syntastic-extras][myint], [syntastic-more][roktas], [tsuquyomi][tsuquyomi],
|
||||
[vim-crystal][crystal], [vim-eastwood][eastwood], and [vim-swift][swift].
|
||||
|
||||
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
|
||||
@ -303,9 +304,17 @@ __4.6. Q. What happened to the `rustc` checker?__
|
||||
A. It is now part of the [rust.vim][rust] plugin. If you install this plugin the
|
||||
checker should be picked up automatically by syntastic.
|
||||
|
||||
<a name="faqtsc"></a>
|
||||
|
||||
__4.7. Q. What happened to the `tsc` checker?__
|
||||
|
||||
A. It didn't meet people's expectations and it has been removed. Please
|
||||
consider using the external checker [tsuquyomi][tsuquyomi] instead. If you
|
||||
install this plugin the checker should be picked up automatically by syntastic.
|
||||
|
||||
<a name="faqxcrun"></a>
|
||||
|
||||
__4.7. Q. What happened to the `xcrun` checker?__
|
||||
__4.8. Q. What happened to the `xcrun` checker?__
|
||||
|
||||
A. The `xcrun` checker used to have a security problem and it has been removed.
|
||||
A better checker for __Swift__ is part of the [vim-swift][swift] plugin. If you
|
||||
@ -313,8 +322,8 @@ install this plugin the checker should be picked up automatically by syntastic.
|
||||
|
||||
<a name="faqloclist"></a>
|
||||
|
||||
__4.8. Q. I run a checker and the location list is not updated...__
|
||||
__4.8. Q. I run`:lopen` or `:lwindow` and the error window is empty...__
|
||||
__4.9. Q. I run a checker and the location list is not updated...__
|
||||
__4.9. Q. I run`:lopen` or `:lwindow` and the error window is empty...__
|
||||
|
||||
A. By default the location list is changed only when you run the `:Errors`
|
||||
command, in order to minimise conflicts with other plugins. If you want the
|
||||
@ -326,7 +335,7 @@ let g:syntastic_always_populate_loc_list = 1
|
||||
|
||||
<a name="faqargs"></a>
|
||||
|
||||
__4.9. Q. How can I pass additional arguments to a checker?__
|
||||
__4.10. Q. How can I pass additional arguments to a checker?__
|
||||
|
||||
A. Almost all syntax checkers use the `makeprgBuild()` function. Those checkers
|
||||
that do can be configured using global variables. The general form of the
|
||||
@ -342,7 +351,7 @@ See `:help syntastic-checker-options` for more information.
|
||||
|
||||
<a name="faqcheckers"></a>
|
||||
|
||||
__4.10. Q. Syntastic supports several checkers for my filetype - how do I tell it
|
||||
__4.11. Q. Syntastic supports several checkers for my filetype - how do I tell it
|
||||
which one(s) to use?__
|
||||
|
||||
A. Stick a line like this in your `vimrc`:
|
||||
@ -383,7 +392,7 @@ filetype of the current file is `php`).
|
||||
|
||||
<a name="faqstyle"></a>
|
||||
|
||||
__4.11. Q. What is the difference between syntax checkers and style checkers?__
|
||||
__4.12. Q. What is the difference between syntax checkers and style checkers?__
|
||||
|
||||
A. The errors and warnings they produce are highlighted differently and can
|
||||
be filtered by different rules, but otherwise the distinction is pretty much
|
||||
@ -413,7 +422,7 @@ See `:help syntastic_quiet_messages` for details.
|
||||
|
||||
<a name="faqaggregate"></a>
|
||||
|
||||
__4.12. Q. I have enabled multiple checkers for the current filetype. How can I
|
||||
__4.13. Q. I have enabled multiple checkers for the current filetype. How can I
|
||||
display all errors from all checkers together?__
|
||||
|
||||
A. Set `g:syntastic_aggregate_errors` to 1 in your `vimrc`:
|
||||
@ -425,7 +434,7 @@ See `:help syntastic-aggregating-errors` for more details.
|
||||
|
||||
<a name="faqlnext"></a>
|
||||
|
||||
__4.13. Q. How can I jump between the different errors without using the location
|
||||
__4.14. Q. How can I jump between the different errors without using the location
|
||||
list at the bottom of the window?__
|
||||
|
||||
A. Vim provides several built-in commands for this. See `:help :lnext` and
|
||||
@ -437,7 +446,7 @@ mappings (among other things).
|
||||
|
||||
<a name="faqconfig"></a>
|
||||
|
||||
__4.14. My favourite checker needs to load a configuration file from the
|
||||
__4.15. My favourite checker needs to load a configuration file from the
|
||||
project's root rather than the current directory...__
|
||||
|
||||
A. You can set up an `autocmd` to search for the configuration file in the
|
||||
@ -456,7 +465,7 @@ autocmd FileType javascript let b:syntastic_javascript_jscs_args =
|
||||
```
|
||||
<a name="faqbdelete"></a>
|
||||
|
||||
__4.15. Q. The error window is closed automatically when I :quit the current buffer
|
||||
__4.16. Q. The error window is closed automatically when I :quit the current buffer
|
||||
but not when I :bdelete it?__
|
||||
|
||||
A. There is no safe way to handle that situation automatically, but you can
|
||||
@ -510,6 +519,7 @@ a look at [ghcmod-vim][ghcmod], [jedi-vim][jedi], [python-mode][python_mode], [v
|
||||
[swift]: https://github.com/kballard/vim-swift
|
||||
[tidy]: http://www.htacg.org/tidy-html5/
|
||||
[tidy_old]: http://tidy.sourceforge.net/
|
||||
[tsuquyomi]: https://github.com/Quramy/tsuquyomi/
|
||||
[unimpaired]: https://github.com/tpope/vim-unimpaired
|
||||
[vam]: https://github.com/MarcWeber/vim-addon-manager
|
||||
[vim]: http://www.vim.org/
|
||||
|
@ -6,6 +6,7 @@ SYNTAX CHECKERS BY LANGUAGE *syntastic-checkers-lang*
|
||||
|
||||
|syntastic| comes with checkers for the following languages:
|
||||
|
||||
ACPI Source Language.....................|syntastic-checkers-asl|
|
||||
ActionScript.............................|syntastic-checkers-actionscript|
|
||||
Ada......................................|syntastic-checkers-ada|
|
||||
Ansible..................................|syntastic-checkers-ansible|
|
||||
@ -132,6 +133,37 @@ SYNTAX CHECKERS BY LANGUAGE *syntastic-checkers-lang*
|
||||
|
||||
Third-party checkers are available for additional languages.
|
||||
|
||||
==============================================================================
|
||||
SYNTAX CHECKERS FOR ACPI SOURCE LANGUAGE *syntastic-checkers-asl*
|
||||
|
||||
The following checkers are available for the ACPI Source Language (filetype
|
||||
"asl"):
|
||||
|
||||
1. iasl.....................|syntastic-asl-iasl|
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
1. iasl *syntastic-asl-iasl*
|
||||
|
||||
Name: iasl
|
||||
Maintainer: Peter Wu <peter@lekensteyn.nl>
|
||||
|
||||
"iasl" is a compiler/decompiler for ACPI Source Language (ASL) and ACPI
|
||||
Machine Language (AML). See the project's page for details:
|
||||
|
||||
https://acpica.org/
|
||||
|
||||
Checker options~
|
||||
|
||||
This checker is initialised using the "makeprgBuild()" function and thus it
|
||||
accepts the standard options described at |syntastic-config-makeprg|.
|
||||
|
||||
Note~
|
||||
|
||||
You probably also need a plugin to set |filetype| for ASL files, such as
|
||||
"vim-acpi-asl":
|
||||
|
||||
https://github.com/martinlroth/vim-acpi-asl
|
||||
|
||||
==============================================================================
|
||||
SYNTAX CHECKERS FOR ACTIONSCRIPT *syntastic-checkers-actionscript*
|
||||
|
||||
@ -344,7 +376,7 @@ accepts the standard options described at |syntastic-config-makeprg|.
|
||||
==============================================================================
|
||||
SYNTAX CHECKERS FOR ASSEMBLY LANGUAGES *syntastic-checkers-asm*
|
||||
|
||||
The following checkers are available for asembly languages (filetype "asm"):
|
||||
The following checkers are available for assembly languages (filetype "asm"):
|
||||
|
||||
1. GCC......................|syntastic-asm-gcc|
|
||||
|
||||
@ -432,7 +464,7 @@ The following checkers are available for BEMHTML (filetype "bemhtml"):
|
||||
Name: bemhtmllint
|
||||
Maintainer: Sergej Tatarincev
|
||||
|
||||
BEMHTML is a template engine intended for using with BEM methodology
|
||||
BEMHTML is a template engine intended for using with the BEM methodology
|
||||
(http://bem.info/method/). See the project's page at GitHub for details:
|
||||
|
||||
https://github.com/SevInf/bemhtml-lint
|
||||
@ -492,9 +524,9 @@ Checker options~
|
||||
This checker is initialised using the "makeprgBuild()" function and thus it
|
||||
accepts the standard options described at |syntastic-config-makeprg|.
|
||||
|
||||
Aditionally:
|
||||
Additionally:
|
||||
|
||||
*g:syntastic_avrgcc_config_file*
|
||||
*'g:syntastic_avrgcc_config_file'*
|
||||
Type: string
|
||||
Default: ".syntastic_avrgcc_config"
|
||||
File containing compilation flags (such as defines or include directories),
|
||||
@ -895,17 +927,39 @@ SYNTAX CHECKERS FOR C++ *syntastic-checkers-cpp*
|
||||
|
||||
The following checkers are available for C++ (filetype "cpp"):
|
||||
|
||||
1. ClangCheck...............|syntastic-cpp-clang_check|
|
||||
2. Clang-Tidy...............|syntastic-cpp-clang_tidy|
|
||||
3. Cppcheck.................|syntastic-cpp-cppcheck|
|
||||
4. Cpplint..................|syntastic-cpp-cpplint|
|
||||
5. GCC......................|syntastic-cpp-gcc|
|
||||
6. OClint...................|syntastic-cpp-oclint|
|
||||
7. PC-Lint..................|syntastic-cpp-pc_lint|
|
||||
8. Vera++...................|syntastic-cpp-verapp|
|
||||
1. AVR-GCC..................|syntastic-cpp-avrgcc|
|
||||
2. ClangCheck...............|syntastic-cpp-clang_check|
|
||||
3. Clang-Tidy...............|syntastic-cpp-clang_tidy|
|
||||
4. Cppcheck.................|syntastic-cpp-cppcheck|
|
||||
5. Cpplint..................|syntastic-cpp-cpplint|
|
||||
6. GCC......................|syntastic-cpp-gcc|
|
||||
7. OClint...................|syntastic-cpp-oclint|
|
||||
8. PC-Lint..................|syntastic-cpp-pc_lint|
|
||||
9. Vera++...................|syntastic-cpp-verapp|
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
1. ClangCheck *syntastic-cpp-clang_check*
|
||||
1. AVR-GCC *syntastic-cpp-avrgcc*
|
||||
|
||||
Name: avrgcc
|
||||
Maintainer: Sławek Piotrowski <sentinel@atteo.com>
|
||||
|
||||
Checker options~
|
||||
|
||||
This checker is initialised using the "makeprgBuild()" function and thus it
|
||||
accepts the standard options described at |syntastic-config-makeprg|.
|
||||
|
||||
Additionally:
|
||||
|
||||
'g:syntastic_avrgcc_config_file'
|
||||
Type: string
|
||||
Default: ".syntastic_avrgcc_config"
|
||||
File containing compilation flags (such as defines or include directories),
|
||||
one option per line (cf. |syntastic-config-files|).
|
||||
|
||||
See also: |syntastic-c-avrgcc|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
2. ClangCheck *syntastic-cpp-clang_check*
|
||||
|
||||
Name: clang_check
|
||||
Maintainer: Benjamin Bannier <bbannier@gmail.com>
|
||||
@ -948,7 +1002,7 @@ then ignored.
|
||||
See also: |syntastic-c-clang_check|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
2. Clang-Tidy *syntastic-cpp-clang_tidy*
|
||||
3. Clang-Tidy *syntastic-cpp-clang_tidy*
|
||||
|
||||
Name: clang_tidy
|
||||
Maintainer: Benjamin Bannier <bbannier@gmail.com>
|
||||
@ -999,7 +1053,7 @@ then ignored.
|
||||
See also: |syntastic-c-clang_tidy|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
3. Cppcheck *syntastic-cpp-cppcheck*
|
||||
4. Cppcheck *syntastic-cpp-cppcheck*
|
||||
|
||||
Name: cppcheck
|
||||
Maintainer: LCD 47 <lcd047@gmail.com>
|
||||
@ -1025,7 +1079,7 @@ one option per line (cf. |syntastic-config-files|).
|
||||
See also: |syntastic-c-cppcheck|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
4. Cpplint *syntastic-cpp-cpplint*
|
||||
5. Cpplint *syntastic-cpp-cpplint*
|
||||
|
||||
Name: cpplint
|
||||
Maintainer: LCD 47 <lcd047@gmail.com>
|
||||
@ -1061,7 +1115,7 @@ However, if your "cpplint" was installed with "pip", the script's name is
|
||||
let g:syntastic_cpp_cpplint_exec = "cpplint"
|
||||
<
|
||||
------------------------------------------------------------------------------
|
||||
5. GCC *syntastic-cpp-gcc*
|
||||
6. GCC *syntastic-cpp-gcc*
|
||||
|
||||
Name: gcc
|
||||
Maintainer: Gregor Uhlenheuer <kongo2002@gmail.com>
|
||||
@ -1158,7 +1212,7 @@ executable.
|
||||
See also: |syntastic-c-gcc|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
6. OClint *syntastic-cpp-oclint*
|
||||
7. OClint *syntastic-cpp-oclint*
|
||||
|
||||
Name: oclint
|
||||
Maintainer: "UnCO" Lin <undercooled@lavabit.com>
|
||||
@ -1198,7 +1252,7 @@ Config files pointed to by 'g:syntastic_oclint_config_file' are then ignored.
|
||||
See also: |syntastic-c-oclint|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
7. PC-Lint *syntastic-cpp-pc_lint*
|
||||
8. PC-Lint *syntastic-cpp-pc_lint*
|
||||
|
||||
Name: pc_lint
|
||||
Maintainer: Steve Bragg <steve@empresseffects.com>
|
||||
@ -1225,7 +1279,7 @@ current directory and in parent directories; first such file found is used.
|
||||
See also: |syntastic-c-pc_lint|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
8. Vera++ *syntastic-cpp-verapp*
|
||||
9. Vera++ *syntastic-cpp-verapp*
|
||||
|
||||
Name: verapp
|
||||
Maintainer: Lucas Verney <phyks@phyks.me>
|
||||
@ -1450,7 +1504,7 @@ The following checkers are available for Coq (filetype "coq"):
|
||||
Name: coqtop
|
||||
Maintainer: Matvey Aksenov <matvey.aksenov@gmail.com>
|
||||
|
||||
"Coqtop" is the top level intrface for Coq. See the project's page for
|
||||
"Coqtop" is the top level interface for Coq. See the project's page for
|
||||
details:
|
||||
|
||||
http://coq.inria.fr/
|
||||
@ -1989,8 +2043,8 @@ Name: syntaxerl
|
||||
Maintainer: locojay
|
||||
|
||||
"SyntaxErl" is a syntax checker for Erlang. It uses "rebar"
|
||||
(https://github.com/basho/rebar) to determine correct deps and libs paths.
|
||||
See the project's page for more information:
|
||||
(https://github.com/basho/rebar) to determine correct dependencies and library
|
||||
paths. See the project's page for more information:
|
||||
|
||||
https://github.com/ten0s/syntaxerl
|
||||
|
||||
@ -2191,7 +2245,7 @@ If the magic comment does not exist, then the dictionary
|
||||
'g:syntastic_glsl_extensions' is used to infer the appropriate profile from
|
||||
the current file's extension. If this dictionary does not exist either, a
|
||||
default dictionary is used instead. Finally, if the current file's extension
|
||||
cannott be found in these dictionaries, the checker assumes a vertex shader
|
||||
cannot be found in these dictionaries, the checker assumes a vertex shader
|
||||
profile.
|
||||
|
||||
*'g:syntastic_glsl_options'*
|
||||
@ -2879,7 +2933,7 @@ point |'g:syntastic_java_checkstyle_classpath'| to it:
|
||||
http://iweb.dl.sourceforge.net/project/checkstyle/checkstyle/
|
||||
http://checkstyle.sourceforge.net/cmdline.html#Usage_by_Classpath_update
|
||||
|
||||
Current builds at Maven Central do not package "checkstyles" with its
|
||||
Current builds at Maven Central do not package "checkstyle" with its
|
||||
dependencies:
|
||||
|
||||
http://search.maven.org/#search|gav|1|g%3A%22com.puppycrawl.tools%22%20AND%20a%3A%22checkstyle%22
|
||||
@ -4637,7 +4691,7 @@ Please note that transforming a file like this affects line numbers and
|
||||
column numbers, and syntastic has no way to make the necessary adjustments.
|
||||
Consequently, errors might appear on surprising lines if you enable this
|
||||
feature and the transformed file has code on different lines than the raw
|
||||
file. For this reason the use of these transformations should be limitted
|
||||
file. For this reason the use of these transformations should be limited
|
||||
to codecs that preserve line numbers, such as the "spec" codec provided by
|
||||
"NoseOfYeti":
|
||||
|
||||
@ -4741,7 +4795,7 @@ setting of "lint.style".
|
||||
Name: lintr
|
||||
Maintainer: Jim Hester <james.f.hester@gmail.com>
|
||||
|
||||
"lintr" is a static code analysys tool for R files. See the project's page at
|
||||
"lintr" is a static code analysis tool for R files. See the project's page at
|
||||
GitHub for details:
|
||||
|
||||
https://github.com/jimhester/lintr
|
||||
@ -4794,7 +4848,7 @@ This is a checker for R files, using the R package "svTools":
|
||||
http://cran.r-project.org/web/packages/svTools/
|
||||
|
||||
In turn, this package delegates most of the work to the "checkUsage()"
|
||||
function in the codetools package:
|
||||
function in the "codetools" package:
|
||||
|
||||
http://cran.r-project.org/web/packages/codetools/
|
||||
|
||||
@ -4851,7 +4905,7 @@ The following checkers are available for R Markdown (filetype "rmd"):
|
||||
Name: lintr
|
||||
Maintainer: Jim Hester <james.f.hester@gmail.com>
|
||||
|
||||
"lintr" is a static code analysys tool for R files. See the project's page at
|
||||
"lintr" is a static code analysis tool for R files. See the project's page at
|
||||
GitHub for details:
|
||||
|
||||
https://github.com/jimhester/lintr
|
||||
@ -5060,7 +5114,7 @@ directory, or if you want to override the autodetected paths, options
|
||||
|'g:syntastic_rst_sphinx_source_dir'| and |'g:syntastic_rst_sphinx_config_dir'|
|
||||
take precedence over the detected values.
|
||||
|
||||
Please not also that the checker creates output files in a temporary directory
|
||||
Please note also that the checker creates output files in a temporary directory
|
||||
that is created upon the first run in the current session, and is removed when
|
||||
Vim exits. If you need to change the location of this directory you can do
|
||||
so by exporting the environment variables "TMPDIR" or "TMP" (on UNIX and Mac
|
||||
@ -5081,7 +5135,7 @@ The following checkers are available for Linux RPM packages (filetype "spec"):
|
||||
Name: rpmlint
|
||||
Maintainer: LCD 47 <lcd047@gmail.com>
|
||||
|
||||
"rpmlint" is a trool for checking Linux RPM packages. See the project's page
|
||||
"rpmlint" is a tool for checking Linux RPM packages. See the project's page
|
||||
for details:
|
||||
|
||||
http://sourceforge.net/projects/rpmlint/
|
||||
@ -5165,7 +5219,7 @@ Name: macruby
|
||||
Maintainer: Martin Grenfell <martin.grenfell@gmail.com>
|
||||
|
||||
"MacRuby" is an implementation of Ruby for Mac OS X. See the project's
|
||||
pagefor details:
|
||||
page for details:
|
||||
|
||||
http://www.macruby.org/
|
||||
|
||||
@ -5864,7 +5918,7 @@ The following checkers are available for Texinfo (filetype "texinfo"):
|
||||
Name: makeinfo
|
||||
Maintainer: LCD 47 <lcd047@gmail.com>
|
||||
|
||||
"Makeinfo" is a convertor for Texinfo files. It is distributed together with
|
||||
"Makeinfo" is a converter for Texinfo files. It is distributed together with
|
||||
the GNU package "texinfo":
|
||||
|
||||
http://www.gnu.org/software/texinfo/
|
||||
@ -6087,8 +6141,7 @@ SYNTAX CHECKERS FOR TYPESCRIPT *syntastic-checkers-typescript*
|
||||
The following checkers are available for TypeScript (filetype "typescript"):
|
||||
|
||||
1. ESLint...................|syntastic-typescript-eslint|
|
||||
2. tsc......................|syntastic-typescript-tsc|
|
||||
3. TSLint...................|syntastic-typescript-tslint|
|
||||
2. TSLint...................|syntastic-typescript-tslint|
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
1. ESLint *syntastic-typescript-eslint*
|
||||
@ -6118,29 +6171,7 @@ as "typescript-vim":
|
||||
See also: |syntastic-html-eslint|, |syntastic-javascript-eslint|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
2. tsc *syntastic-typescript-tsc*
|
||||
|
||||
Name: tsc
|
||||
Maintainer: Bill Casarin <bill@casarin.ca>
|
||||
|
||||
"tsc" is a compiler for TypeScript. See the project's page for details:
|
||||
|
||||
http://www.typescriptlang.org/
|
||||
|
||||
Checker options~
|
||||
|
||||
This checker is initialised using the "makeprgBuild()" function and thus it
|
||||
accepts the standard options described at |syntastic-config-makeprg|.
|
||||
|
||||
Note~
|
||||
|
||||
You probably also need a plugin to set |filetype| for TypeScript files, such
|
||||
as "typescript-vim":
|
||||
|
||||
https://github.com/leafgarland/typescript-vim
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
3. TSLint *syntastic-typescript-tslint*
|
||||
2. TSLint *syntastic-typescript-tslint*
|
||||
|
||||
Name: tslint
|
||||
Maintainer: Seon-Wook Park <seon.wook@swook.net>
|
||||
@ -6861,6 +6892,7 @@ syntastic-specific configuration files:
|
||||
OpenCOBOL (|syntastic-cobol-cobc|)
|
||||
|
||||
C++~
|
||||
AVR-GCC (|syntastic-cpp-avrgcc|)
|
||||
ClangCheck (|syntastic-cpp-clang_check|)
|
||||
Clang-Tidy (|syntastic-cpp-clang_tidy|)
|
||||
Cppcheck (|syntastic-cpp-cppcheck|)
|
||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.7.0-162'
|
||||
let g:_SYNTASTIC_VERSION = '3.7.0-177'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -12,6 +12,7 @@ let s:_DEFAULT_CHECKERS = {
|
||||
\ 'apiblueprint': ['drafter'],
|
||||
\ 'applescript': ['osacompile'],
|
||||
\ 'asciidoc': ['asciidoc'],
|
||||
\ 'asl': ['iasl'],
|
||||
\ 'asm': ['gcc'],
|
||||
\ 'bro': ['bro'],
|
||||
\ 'bemhtml': ['bemhtmllint'],
|
||||
@ -93,7 +94,7 @@ let s:_DEFAULT_CHECKERS = {
|
||||
\ 'trig': ['rapper'],
|
||||
\ 'turtle': ['rapper'],
|
||||
\ 'twig': ['twiglint'],
|
||||
\ 'typescript': ['tsc'],
|
||||
\ 'typescript': [],
|
||||
\ 'vala': ['valac'],
|
||||
\ 'verilog': ['verilator'],
|
||||
\ 'vhdl': ['ghdl'],
|
||||
|
59
sources_non_forked/syntastic/syntax_checkers/asl/iasl.vim
Normal file
59
sources_non_forked/syntastic/syntax_checkers/asl/iasl.vim
Normal file
@ -0,0 +1,59 @@
|
||||
"============================================================================
|
||||
"File: iasl.vim
|
||||
"Description: Syntax checking plugin for syntastic using iasl
|
||||
"Maintainer: Peter Wu <peter@lekensteyn.nl>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_asl_iasl_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_asl_iasl_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_asl_iasl_GetLocList() dict
|
||||
let tmpdir = syntastic#util#tmpdir() . syntastic#util#Slash()
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args': '-vi',
|
||||
\ 'args_after': ['-p', tmpdir] })
|
||||
|
||||
let errorformat =
|
||||
\ '%f(%l) : %trror %n - %m,' .
|
||||
\ '%f(%l) : %tarning %n - %m,' .
|
||||
\ '%f(%l) : %temark %n - %m,' .
|
||||
\ '%f(%l) : %tptimize %n - %m,' .
|
||||
\ '%f(%l) : %m'
|
||||
|
||||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'returns': [0, 255] })
|
||||
|
||||
for e in loclist
|
||||
if e['type'] =~? 'r'
|
||||
let e['type'] = 'W'
|
||||
elseif e['type'] =~? 'o'
|
||||
let e['type'] = 'W'
|
||||
let e['subtype'] = 'Style'
|
||||
endif
|
||||
endfor
|
||||
|
||||
call syntastic#util#rmrf(tmpdir)
|
||||
|
||||
return loclist
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'asl',
|
||||
\ 'name': 'iasl'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -1,6 +1,6 @@
|
||||
"============================================================================
|
||||
"File: avrgcc.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Description: Syntax checking plugin for syntastic
|
||||
"Maintainer: Karel <karelishere at gmail dot com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
@ -22,10 +22,12 @@ endif
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let s:opt_x = { 'c': 'c', 'cpp': 'c++' }
|
||||
|
||||
function! SyntaxCheckers_c_avrgcc_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args_before': syntastic#c#ReadConfig(g:syntastic_avrgcc_config_file),
|
||||
\ 'args_after': '-x c -fsyntax-only' })
|
||||
\ 'args_after': '-x ' . get(s:opt_x, self.getFiletype(), '') . ' -fsyntax-only' })
|
||||
|
||||
let errorformat =
|
||||
\ '%-G%f:%s:,' .
|
||||
|
24
sources_non_forked/syntastic/syntax_checkers/cpp/avrgcc.vim
Normal file
24
sources_non_forked/syntastic/syntax_checkers/cpp/avrgcc.vim
Normal file
@ -0,0 +1,24 @@
|
||||
"============================================================================
|
||||
"File: avrgcc.vim
|
||||
"Description: Syntax checking plugin for syntastic
|
||||
"Maintainer: Sławek Piotrowski <sentinel at atteo dot com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_cpp_avrgcc_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_cpp_avrgcc_checker = 1
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'cpp',
|
||||
\ 'name': 'avrgcc',
|
||||
\ 'exec': 'avr-g++',
|
||||
\ 'redirect': 'c/avrgcc'})
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -1,66 +0,0 @@
|
||||
"============================================================================
|
||||
"File: tsc.vim
|
||||
"Description: TypeScript syntax checker
|
||||
"Maintainer: Bill Casarin <bill@casarin.ca>
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_typescript_tsc_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_typescript_tsc_checker = 1
|
||||
|
||||
if !exists('g:syntastic_typescript_tsc_sort')
|
||||
let g:syntastic_typescript_tsc_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_typescript_tsc_IsAvailable() dict
|
||||
if !executable(self.getExec())
|
||||
return 0
|
||||
endif
|
||||
|
||||
let version_output = split(syntastic#util#system(self.getExecEscaped() . ' --version'), '\n', 1)
|
||||
let ver = filter(copy(version_output), 'v:val =~# ''\m\<Version ''')
|
||||
let parsed_ver = len(ver) ? syntastic#util#parseVersion(ver[0], '\v<Version \zs\d+(\.\d+)\ze') : []
|
||||
|
||||
if len(parsed_ver)
|
||||
call self.setVersion(parsed_ver)
|
||||
let s:tsc_new = syntastic#util#versionIsAtLeast(parsed_ver, [1, 5])
|
||||
else
|
||||
call syntastic#log#ndebug(g:_SYNTASTIC_DEBUG_LOCLIST, 'checker output:', version_output)
|
||||
call syntastic#log#error("checker typescript/tsc: can't parse version string (abnormal termination?)")
|
||||
let s:tsc_new = -1
|
||||
endif
|
||||
|
||||
return s:tsc_new >= 0
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_typescript_tsc_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args': '--module commonjs',
|
||||
\ 'args_after': (s:tsc_new ? '--noEmit' : '--out ' . syntastic#util#DevNull()) })
|
||||
|
||||
let errorformat =
|
||||
\ '%E%f %#(%l\,%c): error %m,' .
|
||||
\ '%E%f %#(%l\,%c): %m,' .
|
||||
\ '%Eerror %m,' .
|
||||
\ '%C%\s%\+%m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'postprocess': ['guards'],
|
||||
\ 'defaults': {'bufnr': bufnr('')} })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'typescript',
|
||||
\ 'name': 'tsc'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
Reference in New Issue
Block a user