Squashed 'vim/bundle/syntastic/' changes from 99126e38f..106c772b0
106c772b0 More detailed logging for version operations. 2d27fd93d Formatting: use the full name for execute. cb64516d4 Version handling: deal with errors. 1ba96436c Cleanup: handling versions. Minor optimisation. bcaf7cbcc Bump version number. 36ead6d75 Bump version number. 2073cee05 More safety checks. 38f46b6ac A (hopefully) safer "rm -rf". 5359f7f4e Python checker: new option g:syntastic_python_python_use_codec (@delfick). 4d1f2e23e Go checker: even more contortions. c60e440d0 Go checker: more contortions around "go_go_build_args" and "go_go_test_args". 8b97caa2d Rubocop: "--silent" was dropped in version 0.12. (@p0deje) 5429d24a5 Phpmd: fix broken regex used for syntax highlighting. 79007b01f Manual: minor additions. 74a071331 Go checker should work with go_go_build_args unset. be01caceb Phpcs: fix column handling. a18ccb40d Go checker: extra arguments for "go build" and "go test". 0da7a1e47 README: minor formatting. 6bea41bdf README: rephrase. 1eb493ef3 README: add a section about recommended settings. 1d2f8d514 Formatting: folding. c472ec139 Feature: extended syntax for `quiet_messages`. d1b401609 Bug fix: `glob()`, `globpath()`, and `expand()` should ignore `wildignore`. 50f6b47cb README: fix reference to pathogen#infect(). d97a43bfa Sparse checker: return code 1 is less meaningful these days. 79b04bdf4 Debug: if reading a config file fails, log the reason it failed. b340672bd Typo: remove a spurious quote. 2bb8d5996 Luacheck: highlighting patterns for version 0.7.1. 30257ef23 Luacheck: cleanup. d2c454963 Add luacheck checker for Lua 03f43ec55 Source uglification, part III. 6de1559f3 Make SyntasticInfo aware of b:syntastic_mode. 21f052ab0 Go and govet checkers: make go executable configurable. f583df730 Minor optimisation. 9caf33d5d If auto_jump is set to 3, jump to the first error if any. 6fdd39438 New option: b:syntastic_mode. 0c1dd2aa0 Safer closing of the error window. c74f28ace Merge pull request #1262 from powerman/fix-perl-DATA 65de58c3a fix file/line detection for perl d422c6d82 Flow checker: cleanup. 9dc6b6108 Updated formatting as per guidelines 55b535618 Added flow checker for javascript 9fe26f71a README: formatting. 38ba36073 README: minor cleanup. 6b9a34842 README: expand TOC. e18c41406 README: update FAQ about validator. 30b4ce341 Validator and w3 checkers: tell curl to ignore curlrc. 67ffe5881 Merge pull request #1255 from vincent-petithory/golint-warning 7f749fe35 make golint report warnings instead of errors 650c7368e Discourage people from looking at the sources for user docs. 4354e31f9 README: rephrase. 41d571944 FAQ: add a note about HTML Tidy for HTML5. 4ff440ccb Shut up vimlint. dbc7e39c1 Dartanalyzer can now return exit code 3. 4dba55828 Remove the avrgcc checker for Arduino. ec2b84b12 Reek checker: cleanup. 36bb32f88 Ruby: add reek style checker de5e025ef Scss-lint: syntax errors should have subtype syntax (@sds). ba7d1b40b Clisp: workaround to remove ciompiled files. 72e0593ea Bug fix: make sure directory returned by syntastic#util#tmpdir() exists. 47834c034 Slightly more meaningful messages for checkers disabled by Eclim and YCM. 412d3526a Try to detect checkers disabled by YouCompleteMe. 7b6734546 Try to detect filetypes abducted by Eclim. e4c94d67a First step towards exposing an API. c307dde8c ghc-mod: the pylint way of handling versions is way cool, man. 82ba62ce9 Minor cleanup: wrap the main commands in their own functions. c4c56716f More naming conventions. 64cce2083 Manual: better description of interaction with Eclim. 8e9ece214 Prospector: saner handling of errors. 83971066a Add legacy checker method setWantSort(). 57f1a0eb2 New user variables: `syntastic_<filetype>_<checker>_sort`. 1327780c5 Proscpector: all tools except pylint return 1-based column numbers. ba1b4606e Prospector: sort loclist. dd1560862 Prospector: version 0.7 can check individual files. 3fe6f2a84 Prospector: fix typos; add logging; better return checking. 71c9a7dd0 Don't run preprocess functions if checker returned an invalid code. 72a7cb389 New checker for python: prospector. 77c125170 Bashate: cleanup. d15590438 Merge remote-tracking branch 'aswna/add_bashate' 948202d04 Source uglification, part II. 4e9e08b50 Change case for constants' names. f180e28a3 Closurecompiler: allow running througha shell script (@bjpbakker). 54086304b Cache balloons' contents. Cleanup. 7ed52d1e4 README: rephrase. e9f930be0 README: expand the section about installation. 3d5d21952 SyntasticInfo: if the current file will not be checked, explain why. 75d56b209 Manual: add a note about vim-auto-save. 47df0a035 Add license. f4c7c5083 Add support for bashate. 008ac9829 Workaround for Vim changing the semantics of lockvar. 0bc8b2acb Don't change Vim's shell. d665fbf56 Solve chicken-and-egg problem with getting ghc-mod version. 038f6ff8f Disable bash_hack by default. 017d89a47 Minor autoload cleanup. aab197fb5 Formating. dce7234fd Merge remote-tracking branch 'remko/rnc-rnv' 4a0d88ad7 Cleanup. 7829ea2b3 rnc-rnv: Change license to WTFPL fe8054d2f Add RelaxNG (RNC) RNV checker 40776864c New checker for DocBook SGML, mdoc, and text: igor. 0e9ef6ec1 Eruby: fix logging. 19f885965 Filetype groff is actually nroff. 83d0d7fef Pylint: remove leftovers from the logging patch. ce8939680 Checker-specific logging. 21a25649b Markdown lint: vim-markdown sets filetype to mkd. acd02f61b Markdown lint: cleanup. 3a355fa4d Vim's filetype for Markdown is "markdown". a188d3ae6 combine improperly separated checkers a7e002cf4 Markdown: Added initial version of Markdown checkers a3cf0cb65 Bro: minor errorformat fix, and highlighting. 7246fac6c Better handling of temporary directories. 049718cc6 Bug fix: SyntasticToggleMode shouldn't trigger the checks. 2a077c90c Typo. f56742a48 Safer handling of temporary directories. 1e1c7086e README: rephrase of a FAQ question. aa3db4513 Mypy: cleanup. d9178ba4c Added mypy syntax plugin 0bfc328b0 The handlebars checker needs "guards". aea964703 New checker for Linux RPM spec files: rpmlint. ba6db9f16 New checker for Scala: scalastyle. fe6003c3b Checkstyle checker: cleanup. 2a88120b3 More grouping in errorformat. 2f7768407 Puppet: the "future" parser outputs column numbers. b8ca57de4 Puppet: fix errorformat. dc4f036a6 Expand b:syntastic_<checker>_exec. b639b007a New options. cc3328660 FAQ: add a note about empty error windows. 6ce9bf9ab Clear loclist when running lolder at the bottom of the loclist stack. bf2faa4d6 Manual: add a note about opening the error window. fa0290c55 PC-Lint: mark informational messages as "Style". 9321bc79e PC-Lint: add column numbers. Cleanup. 4f0fc20a1 Minor cleanup for text filetype. 53a321d0b README: clarifications about style checkers. d751d17ef PC-Lint: cleanup. 3476e4f1d Merge remote-tracking branch '2sb18/pc_lint' 19ee86712 - pc_lint seems to be working well now. fb6747c01 Grammar. 9d2800f9a README: add a note about style checkers. Minor cleanup. 7f08cdde6 working on pc_lint checker 18a7a9ff5 Pylint checker: more versioning delirium. 5c21c4d7f Bug fix: grouping in errorformat. 131563c37 Merge pull request #1187 from rradonic/enable-warnings e79015b0a enable warnings for eruby files e8afec011 SASS checker: fix errorformat. aac0775c3 Make `b:syntastic_skip_checks` suitable for general use. 7cdfd91c9 Merge pull request #1182 from russss/master d624e32b9 Erlang: correctly handle additional LibDirs 83b6d6a58 The php checkers needs "guards" postprocessing. 4aadf589b New postprocess function: `guards`. c2d73ffa3 Merge pull request #1177 from r3m0t/patch-1 82b2d3172 Bug fix: highlighting on python frosted checker b7b09af6b New global option `syntastic_exit_checks`. 0d0c4aa74 Bump version. c55384c0e Transform code using pmod_pt module before checking f88b5c74c Bump version number. 18a185be7 PHPLint: fix syntax highlighting. 0be8cdd63 New checker for PHP: PHPLint. 80db618c0 Cursor columns: fix redraw. d69858cc0 Merge pull request #1170 from blueyed/dont-call-expand-on-shellvar 3060c6b2e Do not `expand()` shell vars 9fb7b0d39 SCSS-Lint: new error codes. 82b274588 Don't assume loclists have vcol fields. 7b9b02954 README: typo. 4b7183b9d README: add a note about Python 3. 8e229e41a A cleaner way to kill default variables. 4cda4c3e0 Clang tools: check exit codes. 825b29a9b Clang tools: missing space. 009232652 Clang tools: work without a compilation database. Cleanup. 8e3482b9f Merge remote-tracking branch 'bbanier/t/clang_tools' into clang_tools e62fe0e6e Allow oclint to use cmake compilation databases. f6e38c8b9 Merge pull request #1161 from dtwitty/patch-1 e6bf829be Fix bad variable initialization d280dc78e Add new clang-tidy and clang-check checkers a27b435a1 OClint: slightly more robust regexps. 1fac6011e OClint: fix parsing. f62e0f661 New option: cursor_columns. 5c48b30c5 Fixes duplicate syntax checker for arduino files c2e7bf29c Escript: parseShebang() is more capable these days. e34079677 Bug fix: SyntasticReset didn't really reset. d795d4b16 Bug fix: forgotten return. 09f35e9f2 Try to prevent g:syntastic_mode_map from being modified. 3f963543d Manual: clarification about g:syntastic_mode_map. Minor cleanup. 95a57739e More detailed logging. c1479f980 Set default reuse_loc_lists to 0. d603ed4f3 Make sure version lists are formed of numbers. e34f421b3 Revert 1e3e0a8. The problem was placing signs on unloaded buffers. 190d9f5e9 Manual: add a note about canceling default arguments. 1d19dff70 Security: disable the elixir checker by default. 1e3e0a825 Defensive coding against stepping over other plugins' signs. 6c88bae55 JSHint checker: sort results. 5eb22bb0a Refresh optimisations: avoid floats. b222a31d5 Typo. 0f8d786b8 Check for +float. 9a26f1d58 SyntasticInfo: minor bug fix. 13bdf9e4b SyntasticInfo: more details about modes. Minor cleanup. 06e77c180 Manual: add a note about YouCompleteMe. e54f28e33 New redirect checker for arduino: avrgcc. 7b0d3f868 Don't check compressed files. d364f33a5 Refresh optimisations. 572d3e0eb README: nit pick about re-enabling the perl checker. af4988644 Vimlint: add g:syntastic_vimlint_options. 4c5ff4272 New option for SyntasticMake(): env. c325f6c81 Make syntastic#util#parseShebang() aware of /usr/bin/env. dd57547da Manual: add a note about netrw. 1ee4bcccc Error highlighting cleanup. 0bef7ef3f Bug fix: refresh notifiers in BufEnter, rather than BufWinEnter. ab79acbcc Cleanup. Deprecate a number of checker variables. 3ebdeabf6 Add a note about rustc's new home. bd7e34757 R lint and svtools: fix CWD for Windows. dd5ca1f78 Add a note about the removal of the rustc checker. 1383c0f50 Remove the rustc checket for Rust. c33303105 rustc: make arguments configurable. 17b624b86 Merge pull request #1113 from BurntSushi/makeprg-fname-param 931db14d9 filename -> fname 4004c021a ruby-lint: typo. 98b64fd7b ruby-lint: add version check for "analyze". b61fc8af0 ruby-lint: removed analyze sub-command 3e8637ec4 New checker for sass and scss: sassc. e058be3d0 Registry optimisation: lazy IsAvailable() calls. 284655357 Cabal checker: cleanup. cc72b0dc6 Rename cabal/check --> cabal/cabal. 02d9f710f Add syntax checker for Haskell .cabal files 101a32bb2 coffeelint: option `--csv` is deprecated (@greenify). b6a42d187 Vim no longer allows setting signs on line 0. 576b84e2b Update installation instructions. 50518b335 Add separate highlighting groups for style messages (@kovidgoyal). 45a36bf2f eslint: honour the exec parameter. 716038ea4 Output of pep257 has changed. e7d1519f5 Cleanup for bro. 6ea779673 Merge remote-tracking branch 'JustinAzoff/bro' 06d8037af Merge pull request #1074 from lucc/doc 79fde89e7 Fix broken tag in docs. 653a02a4c Some versions of phcs produce an extra column: fix errorformat. 02d07313a Merge branch 'multi' 8c1c13e94 Contributing guide: add TOC; formatting. dc02d6664 Update the contributing guide. Make `:SyntasticInfo` print version. 43e8cb955 More clisp fixes. 24eab0313 clisp: fix argument order. ad991127a New checker for less and css: recess (@pixelastic). b9f741e57 Attempt at making multiple buffers work properly. 75c439fc2 Manual: add a note about PowerShell. 2a770da3a GitHub has changed the addresses for user content. 30404b914 Merge pull request #1062 from benekastah/master 9d4b17349 README: minor update. 9facbb77c fixup 748046277 Added an errorformat for eslint's warning messages 092c1f742 Merge pull request #1060 from witchard/ghdl_argument_ordering 0ae26fd22 Updated argument ordering for ghdl. 4b00bf5b2 Python checkers: workaround for GNU readline brain damage. 3c07df5df Cleanup: lock some variables. 02cbebdfa Cleanup: fix two vimlint warnings. 125442f17 tslint: cleanup. eaa899a02 Merge remote-tracking branch 'swook/master' 54bb9b4b8 haxe and dartanalyzer: fix syntax highlighting. b9ee43989 tslint: A basic checker configuration 618b41428 Merge remote-tracking branch 'cww/master' ebbcdd0c1 Cleanup for java/javac. 177292caf Cleanup for the new aggregate_errors. b1b16500a javac: Allow users to specify Maven options 99cbe5d01 HTML Tidy: add a note about HTML Tidy for HTML5. 4dbb65276 New option: syntastic_sort_aggregated_errors. 68131a767 Bug fix: error sorting. b4320f19d oclint: option "-text" is obsolete. 4c18240e8 Formatting. 29843ed7f Minor cleanup. f161992c1 vimlint: a more efficient IsAvailable(). 4b9e87499 README: clarifications for calling multiple checkers. 41edfe34c New checker for plist XML: plutil. 81313611a Manual: minor cleanup. 9cf21436c New checker for haskell: scan. 62fde0051 Hdevtools: fix column calculations. Cleanup. 841087fab Hlint: fix column calculations. 30198e109 Manual: add a note about vim-virtualenv. 21c7234bb Merge pull request #1046 from dan-t/master 7bd9b9834 Always give absolute paths to syntax checkers 'hdevtools' and 'hlint' 9aa1a1969 Merge pull request #1044 from riobard/fix/jsxhint 2a1e0948b R svtools: disable the checker by default, for security reasons. e7662b946 New checker for R: svtools. 6ad57016c New checker for R: lint. d2c0d4d83 jsxhint can be used independently. 6d05d1735 README: add anchors for FAQ items. a62fc9eeb README: minor update. 82bff20b0 README: change address for YouCompleteMe. 8d2ac0682 Minor rephrase in the manual. 668a08bfa Add new checker for bro: bro. 0c557bfca jshint: require version 1.0.0 or later. a781914a1 Yet more pylint versioning delirium. f6d584bc6 splint: add errorformat sequences for Windows. 94e0e73c4 Add a note to the manual about Eclim. 4ded4f404 Expand a few config parameters. c8f562f0f ESLint: add version check; expand config parameter. 9b1c2aa05 fix javascript/eslint format 5e275c453 Merge pull request #1027 from jseabold/patch-1 6fe4db38b Fix link. dc6bb1121 Bump version number. 2850d4145 Minor cleanup. da6520c69 \V<pattern> regexps can spell trouble if <pattern> contains backslashes. 223d00a0f phpcs is slow as a css checker, remove it from the defaults. 013b425c2 Make "g:syntastic_<filetype>_checkers = []" work as expected. 4fa278afe Merge pull request #1018 from lavrin/search-apps-deps-libs 2eb60cb58 Version tracking. 1fcb6b89b Don't forget about ebin/ 2286363ad Properly add deps/*/include to header file path 105965c82 Simplify main/1 heads 0de089b85 Allow foreign checkers to call foreign preprocess and postprocess functions. 74121741f README: put examples in accord with the defaults. ae65cbac4 README: minor updates, rewording, and formatting. c18065ea5 Security: disable the perl checker by default. e677e0655 pyflakes: update errorformat. fb7151464 Move preprocess functions to their own file. f490cf6ec Merge branch 'registry_refactor' 0bb8c7e5f jscs: add exit code 2 as valid (new in JSCS 1.3.0). 4196dd30d jshint: check return code. e32343730 More preparations for the foreign checkers feature. 25271f89a Add buffer-local versions for auto_loc_list and loc_list_height. b0191a144 Refactor of quiet_message filters. 2940b0c72 Bug fix: checker ordering. Formatting. 47e5739f2 Formatting. 0f3a1bf45 Cleanup. ab136c5ae Merge branch 'master' into registry_refactor d12bc4f1d jsxhint: cleanup. de9a02127 Add jsxhint checker 09e6840d1 Fix debug output. c658ff15a Registry refactor. git-subtree-dir: vim/bundle/syntastic git-subtree-split: 106c772b055a7037f47c9ffdca01b53fa24ae6b6main
parent
38a3cd376f
commit
0c33f9ea27
@ -1,49 +1,105 @@
|
||||
# Bug reports / Github issues
|
||||
# CONTRIBUTING
|
||||
- - -
|
||||
1\. [Bug reports / GitHub issues](#bugreps)
|
||||
2\. [Submitting a patch](#patches)
|
||||
3\. [General style notes](#generalstyle)
|
||||
4\. [Syntax checker notes](#checkerstyle)
|
||||
- - -
|
||||
|
||||
When reporting a bug make sure you search the existing github issues for the
|
||||
same/similar issues. If you find one, feel free to add a `+1` comment with any
|
||||
additional information that may help us solve the issue.
|
||||
<a name="bugreps"></a>
|
||||
|
||||
## 1. Bug reports / GitHub issues
|
||||
|
||||
Please note that the preferred channel for posting bug reports is the
|
||||
[issue tracker at GitHub][0]. Reports posted elsewhere are less likely
|
||||
to be seen by the core team.
|
||||
|
||||
When reporting a bug make sure you search the existing GitHub issues
|
||||
for the same/similar issues. If you find one, feel free to add a `+1`
|
||||
comment with any additional information that may help us solve the
|
||||
issue.
|
||||
|
||||
When creating a new issue be sure to state the following:
|
||||
|
||||
* Steps to reproduce the bug.
|
||||
* The version of vim you are using.
|
||||
* The version of syntastic you are using.
|
||||
* steps to reproduce the bug;
|
||||
* the version of Vim you are using (run `:ver` to find out);
|
||||
* the version of syntastic you are using (see `:SyntasticInfo`).
|
||||
|
||||
For syntax checker bugs also state the version of the checker executable
|
||||
that you are using. Adding debugging information is typically useful
|
||||
too:
|
||||
|
||||
* open a file handled by your checker;
|
||||
* set `g:syntastic_debug` to 1 or 3;
|
||||
* run the checker;
|
||||
* copy the output of `:mes`.
|
||||
|
||||
<a name="patches"></a>
|
||||
|
||||
## 2. Submitting a patch
|
||||
|
||||
For syntax checker bugs also state the version of the checker executable that you are using.
|
||||
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.
|
||||
|
||||
# Submitting a patch
|
||||
To submit a patch:
|
||||
|
||||
* Fork the repo on github
|
||||
* Make a [topic branch](https://github.com/dchelimsky/rspec/wiki/Topic-Branches#using-topic-branches-when-contributing-patches) and start hacking
|
||||
* Submit a pull request based off your topic branch
|
||||
* fork the [repo][2] on GitHub;
|
||||
* make a [topic branch][3] and start hacking;
|
||||
* submit a pull request based off your topic branch.
|
||||
|
||||
Small focused patches are preferred.
|
||||
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.
|
||||
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.
|
||||
|
||||
# General style notes
|
||||
Also make sure to update the manual whenever applicable. Nobody can use
|
||||
features that aren't documented.
|
||||
|
||||
Following the coding conventions/styles used in the syntastic core:
|
||||
<a name="generalstyle"></a>
|
||||
|
||||
* Use 4 space indents.
|
||||
* Don't use abbreviated keywords - e.g. use `endfunction`, not `endfun` (there's always room for more fun!).
|
||||
* Don't use `l:` prefixes for variables unless actually required (i.e. almost never).
|
||||
* Code for maintainability. We would rather a function be a couple of lines longer and have (for example) some [explaining variables](http://www.refactoring.com/catalog/introduceExplainingVariable.html) to aid readability.
|
||||
## 3. General style notes
|
||||
|
||||
# Syntax checker style notes
|
||||
Follow the coding conventions/styles used in the syntastic core:
|
||||
|
||||
The preferred style for error format strings is one "clause" per line. E.g.
|
||||
(from the coffeelint checker):
|
||||
* use 4 space indents;
|
||||
* don't use abbreviated keywords - e.g. use `endfunction`, not `endfun`
|
||||
(there's always room for more fun!);
|
||||
* don't use `l:` prefixes for variables unless actually required (i.e.
|
||||
almost never);
|
||||
* code for maintainability; we would rather a function be a couple of
|
||||
lines longer and have (for example) some [explaining variables][4] to
|
||||
aid readability.
|
||||
|
||||
```viml
|
||||
let errorformat = '%E%f:%l:%c: %trror: %m,' .
|
||||
\ 'Syntax%trror: In %f\, %m on line %l,' .
|
||||
\ '%EError: In %f\, Parse error on line %l: %m,' .
|
||||
\ '%EError: In %f\, %m on line %l,' .
|
||||
\ '%W%f(%l): lint warning: %m,' .
|
||||
\ '%W%f(%l): warning: %m,' .
|
||||
\ '%E%f(%l): SyntaxError: %m,' .
|
||||
\ '%-Z%p^,' .
|
||||
\ '%-G%.%#'
|
||||
<a name="checkerstyle"></a>
|
||||
|
||||
## 4. Syntax checker notes
|
||||
|
||||
Make sure to read the [guide][5] if you plan to add new syntax checkers.
|
||||
|
||||
Use the existing checkers as templates, rather than writing everything
|
||||
from scratch.
|
||||
|
||||
The preferred style for error format strings is one "clause" per line.
|
||||
E.g. (from the `coffee` checker):
|
||||
|
||||
```vim
|
||||
let errorformat =
|
||||
\ '%E%f:%l:%c: %trror: %m,' .
|
||||
\ 'Syntax%trror: In %f\, %m on line %l,' .
|
||||
\ '%EError: In %f\, Parse error on line %l: %m,' .
|
||||
\ '%EError: In %f\, %m on line %l,' .
|
||||
\ '%W%f(%l): lint warning: %m,' .
|
||||
\ '%W%f(%l): warning: %m,' .
|
||||
\ '%E%f(%l): SyntaxError: %m,' .
|
||||
\ '%-Z%p^,' .
|
||||
\ '%-G%.%#'
|
||||
```
|
||||
|
||||
[0]: https://github.com/scrooloose/syntastic/issues
|
||||
[1]: https://github.com/scrooloose/syntastic/blob/master/doc/syntastic.txt
|
||||
[2]: https://github.com/scrooloose/syntastic
|
||||
[3]: https://github.com/dchelimsky/rspec/wiki/Topic-Branches#using-topic-branches-when-contributing-patches
|
||||
[4]: http://www.refactoring.com/catalog/extractVariable.html
|
||||
[5]: https://github.com/scrooloose/syntastic/wiki/Syntax-Checker-Guide
|
||||
|
@ -0,0 +1,262 @@
|
||||
if exists("g:loaded_syntastic_preprocess_autoload") || !exists("g:loaded_syntastic_plugin")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_preprocess_autoload = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Public functions {{{1
|
||||
|
||||
function! syntastic#preprocess#cabal(errors) " {{{2
|
||||
let out = []
|
||||
let star = 0
|
||||
for err in a:errors
|
||||
if star
|
||||
if err == ''
|
||||
let star = 0
|
||||
else
|
||||
let out[-1] .= ' ' . err
|
||||
endif
|
||||
else
|
||||
call add(out, err)
|
||||
if err =~ '\m^*\s'
|
||||
let star = 1
|
||||
endif
|
||||
endif
|
||||
endfor
|
||||
return out
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#checkstyle(errors) " {{{2
|
||||
let out = []
|
||||
let fname = expand('%', 1)
|
||||
for err in a:errors
|
||||
if match(err, '\m<error\>') > -1
|
||||
let line = str2nr(matchstr(err, '\m\<line="\zs\d\+\ze"'))
|
||||
if line == 0
|
||||
continue
|
||||
endif
|
||||
|
||||
let col = str2nr(matchstr(err, '\m\<column="\zs\d\+\ze"'))
|
||||
|
||||
let type = matchstr(err, '\m\<severity="\zs.\ze')
|
||||
if type !~? '^[EW]'
|
||||
let type = 'E'
|
||||
endif
|
||||
|
||||
let message = syntastic#util#decodeXMLEntities(matchstr(err, '\m\<message="\zs[^"]\+\ze"'))
|
||||
|
||||
call add(out, join([fname, type, line, col, message], ':'))
|
||||
elseif match(err, '\m<file name="') > -1
|
||||
let fname = syntastic#util#decodeXMLEntities(matchstr(err, '\v\<file name\="\zs[^"]+\ze"'))
|
||||
endif
|
||||
endfor
|
||||
return out
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#cppcheck(errors) " {{{2
|
||||
return map(copy(a:errors), 'substitute(v:val, ''\v^\[[^]]+\]\zs( -\> \[[^]]+\])+\ze:'', "", "")')
|
||||
endfunction " }}}2
|
||||
|
||||
" @vimlint(EVL102, 1, l:true)
|
||||
" @vimlint(EVL102, 1, l:false)
|
||||
" @vimlint(EVL102, 1, l:null)
|
||||
function! syntastic#preprocess#flow(errors) " {{{2
|
||||
" JSON artifacts
|
||||
let true = 1
|
||||
let false = 0
|
||||
let null = ''
|
||||
|
||||
" A hat tip to Marc Weber for this trick
|
||||
" http://stackoverflow.com/questions/17751186/iterating-over-a-string-in-vimscript-or-parse-a-json-file/19105763#19105763
|
||||
try
|
||||
let errs = eval(join(a:errors, ''))
|
||||
catch
|
||||
let errs = {}
|
||||
endtry
|
||||
|
||||
let out = []
|
||||
if type(errs) == type({}) && has_key(errs, 'errors') && type(errs['errors']) == type([])
|
||||
for e in errs['errors']
|
||||
if type(e) == type({}) && has_key(e, 'message') && type(e['message']) == type([]) && len(e['message'])
|
||||
let m = e['message'][0]
|
||||
let t = e['message'][1:]
|
||||
|
||||
try
|
||||
let msg =
|
||||
\ m['path'] . ':' .
|
||||
\ m['line'] . ':' .
|
||||
\ m['start'] . ':' .
|
||||
\ (m['line'] ==# m['endline'] ? m['end'] . ':' : '') .
|
||||
\ ' ' . m['descr']
|
||||
|
||||
if len(t)
|
||||
let msg .= ' ' . join(map(t,
|
||||
\ 'v:val["descr"] . " (" . v:val["path"] . ":" . v:val["line"] . ":" . v:val["start"] . ' .
|
||||
\ '"," . (v:val["line"] !=# v:val["endline"] ? v:val["endline"] . ":" : "") . ' .
|
||||
\ 'v:val["end"] . ")"'))
|
||||
endif
|
||||
|
||||
let msg = substitute(msg, '\r', '', 'g')
|
||||
let msg = substitute(msg, '\n', ' ', 'g')
|
||||
|
||||
call add(out, msg)
|
||||
catch /\m^Vim\%((\a\+)\)\=:E716/
|
||||
call syntastic#log#warn('checker javascript/flow: unknown error format')
|
||||
let out = []
|
||||
break
|
||||
endtry
|
||||
else
|
||||
call syntastic#log#warn('checker javascript/flow: unknown error format')
|
||||
let out = []
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
else
|
||||
call syntastic#log#warn('checker javascript/flow: unknown error format')
|
||||
endif
|
||||
|
||||
return out
|
||||
endfunction " }}}2
|
||||
" @vimlint(EVL102, 0, l:true)
|
||||
" @vimlint(EVL102, 0, l:false)
|
||||
" @vimlint(EVL102, 0, l:null)
|
||||
|
||||
function! syntastic#preprocess#killEmpty(errors) " {{{2
|
||||
return filter(copy(a:errors), 'v:val != ""')
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#perl(errors) " {{{2
|
||||
let out = []
|
||||
|
||||
for e in a:errors
|
||||
let parts = matchlist(e, '\v^(.*)\sat\s(.{-})\sline\s(\d+)(.*)$')
|
||||
if !empty(parts)
|
||||
call add(out, parts[2] . ':' . parts[3] . ':' . parts[1] . parts[4])
|
||||
endif
|
||||
endfor
|
||||
|
||||
return syntastic#util#unique(out)
|
||||
endfunction " }}}2
|
||||
|
||||
" @vimlint(EVL102, 1, l:true)
|
||||
" @vimlint(EVL102, 1, l:false)
|
||||
" @vimlint(EVL102, 1, l:null)
|
||||
function! syntastic#preprocess#prospector(errors) " {{{2
|
||||
" JSON artifacts
|
||||
let true = 1
|
||||
let false = 0
|
||||
let null = ''
|
||||
|
||||
" A hat tip to Marc Weber for this trick
|
||||
" http://stackoverflow.com/questions/17751186/iterating-over-a-string-in-vimscript-or-parse-a-json-file/19105763#19105763
|
||||
try
|
||||
let errs = eval(join(a:errors, ''))
|
||||
catch
|
||||
let errs = {}
|
||||
endtry
|
||||
|
||||
let out = []
|
||||
if type(errs) == type({}) && has_key(errs, 'messages') && type(errs['messages']) == type([])
|
||||
for e in errs['messages']
|
||||
if type(e) == type({})
|
||||
try
|
||||
if e['source'] ==# 'pylint'
|
||||
let e['location']['character'] += 1
|
||||
endif
|
||||
|
||||
let msg =
|
||||
\ e['location']['path'] . ':' .
|
||||
\ e['location']['line'] . ':' .
|
||||
\ e['location']['character'] . ': ' .
|
||||
\ e['code'] . ' ' .
|
||||
\ e['message'] . ' ' .
|
||||
\ '[' . e['source'] . ']'
|
||||
|
||||
call add(out, msg)
|
||||
catch /\m^Vim\%((\a\+)\)\=:E716/
|
||||
call syntastic#log#warn('checker python/prospector: unknown error format')
|
||||
let out = []
|
||||
break
|
||||
endtry
|
||||
else
|
||||
call syntastic#log#warn('checker python/prospector: unknown error format')
|
||||
let out = []
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
else
|
||||
call syntastic#log#warn('checker python/prospector: unknown error format')
|
||||
endif
|
||||
|
||||
return out
|
||||
endfunction " }}}2
|
||||
" @vimlint(EVL102, 0, l:true)
|
||||
" @vimlint(EVL102, 0, l:false)
|
||||
" @vimlint(EVL102, 0, l:null)
|
||||
|
||||
function! syntastic#preprocess#rparse(errors) " {{{2
|
||||
let errlist = copy(a:errors)
|
||||
|
||||
" remove uninteresting lines and handle continuations
|
||||
let i = 0
|
||||
while i < len(errlist)
|
||||
if i > 0 && errlist[i][:1] == ' ' && errlist[i] !~ '\m\s\+\^$'
|
||||
let errlist[i-1] .= errlist[i][1:]
|
||||
call remove(errlist, i)
|
||||
elseif errlist[i] !~ '\m^\(Lint:\|Lint checking:\|Error in\) '
|
||||
call remove(errlist, i)
|
||||
else
|
||||
let i += 1
|
||||
endif
|
||||
endwhile
|
||||
|
||||
let out = []
|
||||
let fname = ''
|
||||
for e in errlist
|
||||
if match(e, '\m^Lint: ') == 0
|
||||
let parts = matchlist(e, '\m^Lint: \(.*\): found on lines \([0-9, ]\+\)\(+\(\d\+\) more\)\=')
|
||||
if len(parts) >= 3
|
||||
for line in split(parts[2], '\m,\s*')
|
||||
call add(out, 'E:' . fname . ':' . line . ': ' . parts[1])
|
||||
endfor
|
||||
endif
|
||||
if len(parts) >= 5 && parts[4] != ''
|
||||
call add(out, 'E:' . fname . ':0: ' . parts[1] . ' - ' . parts[4] . ' messages not shown')
|
||||
endif
|
||||
elseif match(e, '\m^Lint checking: ') == 0
|
||||
let fname = matchstr(e, '\m^Lint checking: \zs.*')
|
||||
elseif match(e, '\m^Error in ') == 0
|
||||
call add(out, substitute(e, '\m^Error in .\+ : .\+\ze:\d\+:\d\+: ', 'E:' . fname, ''))
|
||||
endif
|
||||
endfor
|
||||
|
||||
return out
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#tslint(errors) " {{{2
|
||||
return map(copy(a:errors), 'substitute(v:val, ''\m^\(([^)]\+)\)\s\(.\+\)$'', ''\2 \1'', "")')
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#validator(errors) " {{{2
|
||||
let out = []
|
||||
for e in a:errors
|
||||
let parts = matchlist(e, '\v^"([^"]+)"(.+)')
|
||||
if len(parts) >= 3
|
||||
" URL decode, except leave alone any "+"
|
||||
let parts[1] = substitute(parts[1], '\m%\(\x\x\)', '\=nr2char("0x".submatch(1))', 'g')
|
||||
let parts[1] = substitute(parts[1], '\m\\"', '"', 'g')
|
||||
let parts[1] = substitute(parts[1], '\m\\\\', '\\', 'g')
|
||||
call add(out, '"' . parts[1] . '"' . parts[2])
|
||||
endif
|
||||
endfor
|
||||
return out
|
||||
endfunction " }}}2
|
||||
|
||||
" }}}1
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -1,40 +1,38 @@
|
||||
if exists("g:loaded_syntastic_notifier_autoloclist")
|
||||
if exists("g:loaded_syntastic_notifier_autoloclist") || !exists("g:loaded_syntastic_plugin")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_notifier_autoloclist = 1
|
||||
|
||||
if !exists("g:syntastic_auto_loc_list")
|
||||
let g:syntastic_auto_loc_list = 2
|
||||
endif
|
||||
|
||||
let g:SyntasticAutoloclistNotifier = {}
|
||||
|
||||
" Public methods {{{1
|
||||
"
|
||||
function! g:SyntasticAutoloclistNotifier.New()
|
||||
function! g:SyntasticAutoloclistNotifier.New() " {{{2
|
||||
let newObj = copy(self)
|
||||
return newObj
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
function! g:SyntasticAutoloclistNotifier.refresh(loclist)
|
||||
call syntastic#log#debug(g:SyntasticDebugNotifications, 'autoloclist: refresh')
|
||||
function! g:SyntasticAutoloclistNotifier.refresh(loclist) " {{{2
|
||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'autoloclist: refresh')
|
||||
call g:SyntasticAutoloclistNotifier.AutoToggle(a:loclist)
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
function! g:SyntasticAutoloclistNotifier.AutoToggle(loclist)
|
||||
call syntastic#log#debug(g:SyntasticDebugNotifications, 'autoloclist: toggle')
|
||||
function! g:SyntasticAutoloclistNotifier.AutoToggle(loclist) " {{{2
|
||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'autoloclist: toggle')
|
||||
if !a:loclist.isEmpty()
|
||||
if g:syntastic_auto_loc_list == 1
|
||||
if syntastic#util#var('auto_loc_list') == 1
|
||||
call a:loclist.show()
|
||||
endif
|
||||
else
|
||||
if g:syntastic_auto_loc_list > 0
|
||||
if syntastic#util#var('auto_loc_list') > 0
|
||||
|
||||
"TODO: this will close the loc list window if one was opened by
|
||||
"something other than syntastic
|
||||
lclose
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
" }}}1
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
||||
|
@ -1,67 +1,138 @@
|
||||
if exists("g:loaded_syntastic_notifier_cursor")
|
||||
if exists("g:loaded_syntastic_notifier_cursor") || !exists("g:loaded_syntastic_plugin")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_notifier_cursor = 1
|
||||
|
||||
if !exists('g:syntastic_echo_current_error')
|
||||
let g:syntastic_echo_current_error = 1
|
||||
endif
|
||||
|
||||
let g:SyntasticCursorNotifier = {}
|
||||
|
||||
" Public methods {{{1
|
||||
|
||||
function! g:SyntasticCursorNotifier.New()
|
||||
function! g:SyntasticCursorNotifier.New() " {{{2
|
||||
let newObj = copy(self)
|
||||
return newObj
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
function! g:SyntasticCursorNotifier.enabled()
|
||||
function! g:SyntasticCursorNotifier.enabled() " {{{2
|
||||
return syntastic#util#var('echo_current_error')
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
function! g:SyntasticCursorNotifier.refresh(loclist)
|
||||
function! g:SyntasticCursorNotifier.refresh(loclist) " {{{2
|
||||
if self.enabled() && !a:loclist.isEmpty()
|
||||
call syntastic#log#debug(g:SyntasticDebugNotifications, 'cursor: refresh')
|
||||
let b:syntastic_messages = copy(a:loclist.messages(bufnr('')))
|
||||
let b:oldLine = -1
|
||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'cursor: refresh')
|
||||
let b:syntastic_private_messages = copy(a:loclist.messages(bufnr('')))
|
||||
let b:syntastic_private_line = -1
|
||||
let b:syntastic_cursor_columns = a:loclist.getCursorColumns()
|
||||
autocmd! syntastic CursorMoved
|
||||
autocmd syntastic CursorMoved * call g:SyntasticRefreshCursor()
|
||||
autocmd syntastic CursorMoved * call SyntasticRefreshCursor()
|
||||
endif
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
" @vimlint(EVL103, 1, a:loclist)
|
||||
function! g:SyntasticCursorNotifier.reset(loclist)
|
||||
call syntastic#log#debug(g:SyntasticDebugNotifications, 'cursor: reset')
|
||||
function! g:SyntasticCursorNotifier.reset(loclist) " {{{2
|
||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'cursor: reset')
|
||||
autocmd! syntastic CursorMoved
|
||||
unlet! b:syntastic_messages
|
||||
let b:oldLine = -1
|
||||
endfunction
|
||||
unlet! b:syntastic_private_messages
|
||||
let b:syntastic_private_line = -1
|
||||
endfunction " }}}2
|
||||
" @vimlint(EVL103, 0, a:loclist)
|
||||
|
||||
" Private methods {{{1
|
||||
" }}}1
|
||||
|
||||
" Private functions {{{1
|
||||
|
||||
" The following defensive nonsense is needed because of the nature of autocmd
|
||||
function! g:SyntasticRefreshCursor()
|
||||
if !exists('b:syntastic_messages') || empty(b:syntastic_messages)
|
||||
function! SyntasticRefreshCursor() " {{{2
|
||||
if !exists('b:syntastic_private_messages') || empty(b:syntastic_private_messages)
|
||||
" file not checked
|
||||
return
|
||||
endif
|
||||
|
||||
if !exists('b:oldLine')
|
||||
let b:oldLine = -1
|
||||
if !exists('b:syntastic_private_line')
|
||||
let b:syntastic_private_line = -1
|
||||
endif
|
||||
let l = line('.')
|
||||
if l == b:oldLine
|
||||
return
|
||||
let current_messages = get(b:syntastic_private_messages, l, {})
|
||||
|
||||
if !exists('b:syntastic_cursor_columns')
|
||||
let b:syntastic_cursor_columns = g:syntastic_cursor_columns
|
||||
endif
|
||||
let b:oldLine = l
|
||||
|
||||
if has_key(b:syntastic_messages, l)
|
||||
call syntastic#util#wideMsg(b:syntastic_messages[l])
|
||||
if b:syntastic_cursor_columns
|
||||
let c = virtcol('.')
|
||||
if !exists('b:syntastic_private_idx')
|
||||
let b:syntastic_private_idx = -1
|
||||
endif
|
||||
|
||||
if s:_is_same_index(l, b:syntastic_private_line, c, b:syntastic_private_idx, current_messages)
|
||||
return
|
||||
else
|
||||
let b:syntastic_private_line = l
|
||||
endif
|
||||
|
||||
if !empty(current_messages)
|
||||
let b:syntastic_private_idx = s:_find_index(c, current_messages)
|
||||
call syntastic#util#wideMsg(current_messages[b:syntastic_private_idx].text)
|
||||
else
|
||||
let b:syntastic_private_idx = -1
|
||||
echo
|
||||
endif
|
||||
else
|
||||
echo
|
||||
if l == b:syntastic_private_line
|
||||
return
|
||||
endif
|
||||
let b:syntastic_private_line = l
|
||||
|
||||
if !empty(current_messages)
|
||||
call syntastic#util#wideMsg(current_messages[0].text)
|
||||
else
|
||||
echo
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
endfunction " }}}2
|
||||
|
||||
" }}}1
|
||||
|
||||
" Utilities {{{1
|
||||
|
||||
function! s:_is_same_index(line, old_line, column, idx, messages) " {{{2
|
||||
if a:old_line >= 0 && a:line == a:old_line && a:idx >= 0
|
||||
if len(a:messages) <= 1
|
||||
return 1
|
||||
endif
|
||||
|
||||
if a:messages[a:idx].scol <= a:column || a:idx == 0
|
||||
if a:idx == len(a:messages) - 1 || a:column < a:messages[a:idx + 1].scol
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
endif
|
||||
else
|
||||
return 0
|
||||
endif
|
||||
else
|
||||
return 0
|
||||
endif
|
||||
endfunction " }}}2
|
||||
|
||||
function! s:_find_index(column, messages) " {{{2
|
||||
let max = len(a:messages) - 1
|
||||
if max == 0
|
||||
return 0
|
||||
endif
|
||||
let min = 0
|
||||
|
||||
" modified binary search: assign index 0 to columns to the left of the first error
|
||||
while min < max - 1
|
||||
let mid = (min + max) / 2
|
||||
if a:column < a:messages[mid].scol
|
||||
let max = mid
|
||||
else
|
||||
let min = mid
|
||||
endif
|
||||
endwhile
|
||||
|
||||
return a:column < a:messages[max].scol ? min : max
|
||||
endfunction " }}}2
|
||||
|
||||
" }}}1
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
||||
|
@ -0,0 +1,60 @@
|
||||
"============================================================================
|
||||
"File: bro.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Justin Azoff <justin.azoff@gmail.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_bro_bro_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_bro_bro_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_bro_bro_GetHighlightRegex(item)
|
||||
let term = matchstr(a:item['text'], '\m at or near "\zs[^"]\+\ze"')
|
||||
return term != '' ? '\V\<' . escape(term, '\') . '\>' : ''
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_bro_bro_IsAvailable() dict
|
||||
if !executable(self.getExec())
|
||||
return 0
|
||||
endif
|
||||
|
||||
if system(self.getExecEscaped() . ' --help') !~# '--parse-only'
|
||||
call self.log('unknown option "--parse-only"')
|
||||
return 0
|
||||
endif
|
||||
|
||||
return 1
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_bro_bro_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({ 'args_before': '--parse-only' })
|
||||
|
||||
"example: error in ./foo.bro, line 3: unknown identifier banana, at or near "banana"
|
||||
let errorformat =
|
||||
\ 'fatal %trror in %f\, line %l: %m,' .
|
||||
\ '%trror in %f\, line %l: %m,' .
|
||||
\ '%tarning in %f\, line %l: %m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'bro',
|
||||
\ 'name': 'bro'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,61 @@
|
||||
"============================================================================
|
||||
"File: clang_check.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Benjamin Bannier <bbannier 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
|
||||
" 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_c_clang_check_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_c_clang_check_checker = 1
|
||||
|
||||
if !exists('g:syntastic_clang_check_config_file')
|
||||
let g:syntastic_clang_check_config_file = '.syntastic_clang_check_config'
|
||||
endif
|
||||
|
||||
if !exists('g:syntastic_c_clang_check_sort')
|
||||
let g:syntastic_c_clang_check_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_c_clang_check_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'post_args':
|
||||
\ '-- ' .
|
||||
\ syntastic#c#ReadConfig(g:syntastic_clang_check_config_file) . ' ' .
|
||||
\ '-fshow-column ' .
|
||||
\ '-fshow-source-location ' .
|
||||
\ '-fno-caret-diagnostics ' .
|
||||
\ '-fno-color-diagnostics ' .
|
||||
\ '-fdiagnostics-format=clang' })
|
||||
|
||||
let errorformat =
|
||||
\ '%E%f:%l:%c: fatal error: %m,' .
|
||||
\ '%E%f:%l:%c: error: %m,' .
|
||||
\ '%W%f:%l:%c: warning: %m,' .
|
||||
\ '%-G%\m%\%%(LLVM ERROR:%\|No compilation database found%\)%\@!%.%#,' .
|
||||
\ '%E%m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'defaults': {'bufnr': bufnr('')},
|
||||
\ 'returns': [0, 1] })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'c',
|
||||
\ 'name': 'clang_check',
|
||||
\ 'exec': 'clang-check'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,61 @@
|
||||
"============================================================================
|
||||
"File: clang_tidy.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Benjamin Bannier <bbannier 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
|
||||
" 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_c_clang_tidy_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_c_clang_tidy_checker = 1
|
||||
|
||||
if !exists('g:syntastic_clang_tidy_config_file')
|
||||
let g:syntastic_clang_tidy_config_file = '.syntastic_clang_tidy_config'
|
||||
endif
|
||||
|
||||
if !exists('g:syntastic_c_clang_tidy_sort')
|
||||
let g:syntastic_c_clang_tidy_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_c_clang_tidy_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'post_args':
|
||||
\ '-- ' .
|
||||
\ syntastic#c#ReadConfig(g:syntastic_clang_tidy_config_file) . ' ' .
|
||||
\ '-fshow-column ' .
|
||||
\ '-fshow-source-location ' .
|
||||
\ '-fno-caret-diagnostics ' .
|
||||
\ '-fno-color-diagnostics ' .
|
||||
\ '-fdiagnostics-format=clang' })
|
||||
|
||||
let errorformat =
|
||||
\ '%E%f:%l:%c: fatal error: %m,' .
|
||||
\ '%E%f:%l:%c: error: %m,' .
|
||||
\ '%W%f:%l:%c: warning: %m,' .
|
||||
\ '%-G%\m%\%%(LLVM ERROR:%\|No compilation database found%\)%\@!%.%#,' .
|
||||
\ '%E%m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'defaults': {'bufnr': bufnr('')},
|
||||
\ 'returns': [0, 1] })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'c',
|
||||
\ 'name': 'clang_tidy',
|
||||
\ 'exec': 'clang-tidy'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,66 @@
|
||||
"============================================================================
|
||||
"File: pc_lint.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Steve Bragg <steve at empresseffects 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_c_pc_lint_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_c_pc_lint_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
if !exists('g:syntastic_pc_lint_config_file')
|
||||
let g:syntastic_pc_lint_config_file = 'options.lnt'
|
||||
endif
|
||||
|
||||
function! SyntaxCheckers_c_pc_lint_GetLocList() dict
|
||||
let config = findfile(g:syntastic_pc_lint_config_file, '.;')
|
||||
call self.log('config =', config)
|
||||
|
||||
" -hFs1 - show filename, add space after messages, try to make message 1 line
|
||||
" -width(0,0) - make sure there are no line breaks
|
||||
" -t - set tab size
|
||||
" -v - turn off verbosity
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args': (filereadable(config) ? syntastic#util#shescape(fnamemodify(config, ':p')) : ''),
|
||||
\ 'args_after': ['-hFs1', '-width(0,0)', '-t' . &tabstop, '-format=%f:%l:%C:%t:%n:%m'] })
|
||||
|
||||
let errorformat =
|
||||
\ '%E%f:%l:%v:Error:%n:%m,' .
|
||||
\ '%W%f:%l:%v:Warning:%n:%m,' .
|
||||
\ '%I%f:%l:%v:Info:%n:%m,' .
|
||||
\ '%-G%.%#'
|
||||
|
||||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'postprocess': ['cygwinRemoveCR'] })
|
||||
|
||||
for e in loclist
|
||||
if e['type'] ==? 'I'
|
||||
let e['type'] = 'W'
|
||||
let e['subtype'] = 'Style'
|
||||
endif
|
||||
endfor
|
||||
|
||||
return loclist
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'c',
|
||||
\ 'name': 'pc_lint',
|
||||
\ 'exec': 'lint-nt'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,55 @@
|
||||
"============================================================================
|
||||
"File: cabal.vim
|
||||
"Description: Haskell package description (.cabal file) linting and syntax
|
||||
" validation via 'cabal check'
|
||||
"Maintainer: Ian D. Bollinger <ian.bollinger@gmail.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_cabal_cabal_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_cabal_cabal_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_cabal_cabal_GetHighlightRegex(item)
|
||||
let field = matchstr(a:item['text'], "\\vParse of field '\\zs[^']+")
|
||||
if field != ''
|
||||
return '\v\c^\s*' . field . '\s*:\s*\zs.*$'
|
||||
endif
|
||||
let field = matchstr(a:item['text'], "\\v(^|\\s)'\\zs[^']+\\ze'")
|
||||
if field != ''
|
||||
return '\V\c\<' . escape(field, '\') . '\>'
|
||||
endif
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_cabal_cabal_GetLocList() dict
|
||||
let makeprg = self.getExecEscaped() . ' check'
|
||||
|
||||
let errorformat =
|
||||
\ '%Ecabal: %f:%l: %m,' .
|
||||
\ '%W* %m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'cwd': expand('%:p:h', 1),
|
||||
\ 'preprocess': 'cabal',
|
||||
\ 'defaults': {'bufnr': bufnr('')} })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'cabal',
|
||||
\ 'name': 'cabal'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,25 @@
|
||||
"============================================================================
|
||||
"File: clang_check.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Benjamin Bannier <bbannier 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
|
||||
" 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_clang_check_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_cpp_clang_check_checker = 1
|
||||
|
||||
runtime! syntax_checkers/c/*.vim
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'cpp',
|
||||
\ 'name': 'clang_check',
|
||||
\ 'exec': 'clang-check',
|
||||
\ 'redirect': 'c/clang_check'})
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,25 @@
|
||||
"============================================================================
|
||||
"File: clang_tidy.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Benjamin Bannier <bbannier 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
|
||||
" 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_clang_tidy_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_cpp_clang_tidy_checker = 1
|
||||
|
||||
runtime! syntax_checkers/c/*.vim
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'cpp',
|
||||
\ 'name': 'clang_tidy',
|
||||
\ 'exec': 'clang-tidy',
|
||||
\ 'redirect': 'c/clang_tidy'})
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,26 @@
|
||||
"============================================================================
|
||||
"File: pc_lint.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: Steve Bragg <steve at empresseffects 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_pc_lint_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_cpp_pc_lint_checker = 1
|
||||
|
||||
runtime! syntax_checkers/c/*.vim
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'cpp',
|
||||
\ 'name': 'pc_lint',
|
||||
\ 'exec': 'lint-nt',
|
||||
\ 'redirect': 'c/pc_lint'})
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,26 @@
|
||||
"============================================================================
|
||||
"File: recess.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim using `recess`
|
||||
" (http://twitter.github.io/recess/).
|
||||
"Maintainer: Tim Carry <tim at pixelastic 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_css_recess_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_css_recess_checker = 1
|
||||
|
||||
runtime! syntax_checkers/less/*.vim
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'css',
|
||||
\ 'name': 'recess',
|
||||
\ 'redirect': 'less/recess'})
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,55 @@
|
||||
"============================================================================
|
||||
"File: igor.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: LCD 47 <lcd047 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
|
||||
" 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_docbk_igor_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_docbk_igor_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_docbk_igor_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({})
|
||||
|
||||
let errorformat = '%f:%l:%m'
|
||||
|
||||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'defaults': { 'type': 'W' },
|
||||
\ 'subtype': 'Style',
|
||||
\ 'returns': [0] })
|
||||
|
||||
let buf = bufnr('')
|
||||
for e in loclist
|
||||
" XXX: igor strips directories from filenames
|
||||
let e['bufnr'] = buf
|
||||
|
||||
let e['hl'] = '\V' . escape( substitute(e['text'], '\m[^:]*:', '', ''), '\' )
|
||||
let e['hl'] = substitute(e['hl'], '\V[', '\\zs', 'g')
|
||||
let e['hl'] = substitute(e['hl'], '\V]', '\\ze', 'g')
|
||||
|
||||
" let e['text'] = substitute(e['text'], '\m:.*$', '', '')
|
||||
endfor
|
||||
|
||||
return loclist
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'docbk',
|
||||
\ 'name': 'igor'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,43 @@
|
||||
"============================================================================
|
||||
"File: scan.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: LCD 47 <lcd047 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
|
||||
" 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_haskell_scan_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_haskell_scan_checker = 1
|
||||
|
||||
if !exists('g:syntastic_haskell_scan_sort')
|
||||
let g:syntastic_haskell_scan_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_haskell_scan_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({})
|
||||
|
||||
let errorformat = '%f:%l:%v: %m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'subtype': 'Style' })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'haskell',
|
||||
\ 'name': 'scan'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,56 @@
|
||||
"============================================================================
|
||||
"File: flow.vim
|
||||
"Description: Javascript syntax checker - using flow
|
||||
"Maintainer: Michael Robinson <mike@pagesofinterest.net>
|
||||
"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_javascript_flow_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_javascript_flow_checker = 1
|
||||
|
||||
if !exists('g:syntastic_javascript_flow_sort')
|
||||
let g:syntastic_javascript_flow_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_javascript_flow_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe_after': 'check',
|
||||
\ 'args_after': '--show-all-errors --json' })
|
||||
|
||||
let errorformat =
|
||||
\ '%f:%l:%c:%n: %m,' .
|
||||
\ '%f:%l:%c: %m'
|
||||
|
||||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'preprocess': 'flow',
|
||||
\ 'defaults': {'type': 'E'} })
|
||||
|
||||
for e in loclist
|
||||
if get(e, 'col', 0) && get(e, 'nr', 0)
|
||||
let e['hl'] = '\%>' . (e['col'] - 1) . 'c\%<' . (e['nr'] + 1) . 'c'
|
||||
let e['nr'] = 0
|
||||
endif
|
||||
endfor
|
||||
|
||||
return loclist
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'javascript',
|
||||
\ 'name': 'flow'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,51 @@
|
||||
"============================================================================
|
||||
"File: jsxhint.vim
|
||||
"Description: Javascript syntax checker - using jsxhint
|
||||
"Maintainer: Thomas Boyt <me@thomasboyt.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_javascript_jsxhint_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_javascript_jsxhint_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_javascript_jsxhint_IsAvailable() dict
|
||||
let jsxhint_version = system(self.getExecEscaped() . ' --version')
|
||||
if v:shell_error || (jsxhint_version !~# '\m^JSXHint\>')
|
||||
return 0
|
||||
endif
|
||||
|
||||
let ver = syntastic#util#parseVersion(jsxhint_version)
|
||||
call self.setVersion(ver)
|
||||
|
||||
return syntastic#util#versionIsAtLeast(ver, [0, 4, 1])
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_javascript_jsxhint_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args_after': '--verbose' })
|
||||
|
||||
let errorformat = '%A%f: line %l\, col %v\, %m \(%t%*\d\)'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'defaults': {'bufnr': bufnr('')} })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'javascript',
|
||||
\ 'name': 'jsxhint'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue