Commit Graph

835 Commits

Author SHA1 Message Date
Michael Hart
67ecc65223 Change coffee arg from -c to -t to prevent JS file pollution
The -t flag will output tokens (and syntax errors if there are any) - it is quite a lot quicker than another alternative, -n, especially for large files.
2013-06-05 18:25:54 +10:00
LCD 47
b774569ad0 Unbreaks coffee-script. Partial fix for #663. 2013-06-04 21:34:42 +03:00
William Ting
dd7ed77886 fix errror misspellings 2013-06-04 07:53:06 -05:00
hirochachacha
cc9fc0b52b add golint to syntax_checkers 2013-06-04 01:12:04 +09:00
LCD 47
0151c96c9c Atdtool: make syntax highlighting more robust. 2013-05-31 21:31:35 +03:00
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +03:00
LCD 47
dfb8b4a0ad Typo in OClint checker. 2013-05-30 19:45:33 +03:00
LCD 47
ec434f50b1 Added checkers for Objective-C++ (mostly cloned from Objective-C). 2013-05-30 18:55:39 +03:00
LCD 47
3c5323c103 More errorformar adjustments for OClint. 2013-05-30 18:40:37 +03:00
LCD 47
5393d3b040 Better handling of errorformat for OClint. 2013-05-30 13:01:37 +03:00
LCD 47
5a73439775 New checker: text/atdtool. 2013-05-29 18:03:14 +03:00
LCD 47
3c41ef06b3 Remove duplicated code. 2013-05-29 14:57:29 +03:00
LCD 47
76b90995f5 Uniform naming for load guards. 2013-05-29 14:50:29 +03:00
LCD 47
a0aff0f436 OClint can check Objective-C files. Cleanup. 2013-05-29 14:25:33 +03:00
unc0
85cd84e5b0 add oclint syntax checker for c/c++ 2013-05-29 16:10:46 +08:00
LCD 47
dd6e1c703b Relax parsing of version strings. 2013-05-29 09:55:42 +03:00
LCD 47
b4e0bdfe12 Coffee checker: "--lint" is now deprecated. 2013-05-26 17:47:52 +03:00
Eddie Monge Jr.
2da8a149a6 Add main to list of block level elements
HTML5 now supports main element http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-main-element
2013-05-20 15:00:42 -06:00
LCD 47
3462105740 Splint: kip some assertion messages. 2013-05-20 21:52:49 +03:00
LCD 47
c64f49456e Syntax checker: pod/podchecker. 2013-05-20 20:57:02 +03:00
LCD 47
8c0f54e794 Syntax checker: nroff/mandoc. 2013-05-20 19:37:26 +03:00
LCD 47
c7ad55cbbd Allow per-buffer b:syntastic_perl_efm_program to override g:syntastic_perl_efm_program. 2013-05-17 19:53:38 +03:00
LCD 47
5f7e62f95d Allow g:syntastic_perl_interpreter to override the Perl interpretter. 2013-05-17 19:09:21 +03:00
LCD 47
49166270fa Bug fix. 2013-05-14 21:48:00 +03:00
Martin Grenfell
602bbe7b24 break down some error format strings
Most errorformats are now expressed 1 "clause" per line.
2013-05-14 17:36:20 +01:00
LCD 47
68cfe6513b Cleanup. 2013-05-13 16:37:16 +03:00
LCD 47
7319cb6a9e Postprocessing functions.
This patch adds an option 'postprocess' to SyntasticMake().  The value
of this option is a list of names.  Each name is translated to a
function syntastic#postprocess#name().  These functions are applied in
order to the list of errors just before SyntasticMake() returns.  They
take a single parameter, the list of errors, and are supposed to
returned the processed list.
2013-05-10 14:11:07 +03:00
LCD 47
d261751c77 Merge pull request #632 from mbedna/master
Fix to enable using syntastic plugin with java projects using maven in cygwin
2013-05-06 05:52:45 -07:00
Marcin Bednarek
5bd761984c Using standard output directories for maven project. 2013-05-06 12:25:19 +01:00
Marcin Bednarek
2f89733f3e Cygwin support added. 2013-05-06 12:24:15 +01:00
LCD 47
17d49a8db6 Added pep8 checker for Python. 2013-05-05 08:54:03 +03:00
LCD 47
165602e572 LLVM: avoid leaving behind junk files. 2013-04-30 23:14:55 +03:00
Andrew Kelley
3ef7ec6f5b add llvm syntax checker 2013-04-30 15:42:29 -04:00
LCD 47
32423160aa Fix (again) errorformat for checkbashisms. 2013-04-30 00:16:15 +03:00
Marcin Bednarek
8217787543 target/test-classes added to classpath. 2013-04-29 21:26:33 +01:00
Marcin Bednarek
aecbf44568 ^M changed to \r - carriage return. 2013-04-28 21:06:39 +01:00
Marcin Bednarek
9d6c40c1f7 Cygwin support added. Using cygpath to get actual path for Cygwin. 2013-04-28 14:32:12 +01:00
LCD 47
9493124831 Rework of the haskell/ghc-mod checker. 2013-04-25 22:40:03 +03:00
LCD 47
2c894c951c Bug fix in objc/gcc. 2013-04-25 09:23:47 +03:00
LCD 47
7bbaa18dce Gets the D checker in synch with the C/C++ ones. 2013-04-24 11:02:03 +03:00
Martin Grenfell
2e608688b9 Merge pull request #620 from lafka/erl-nested-dirs
Add support for nested dirs inside src/
2013-04-22 04:21:11 -07:00
LCD 47
eca7c1e1a0 New C checker for Secure Programming Lint. 2013-04-21 22:21:13 +03:00
Martin Grenfell
dc01f5d69d clisp: some fixes
Add a buffer number to loc list entries.

Match warnings that are for multiple lines.
2013-04-21 18:37:41 +01:00
Martin Grenfell
5859a5bdff ruby/rubocop: bugfix 2013-04-21 17:31:37 +01:00
Recai Oktaş
02dbc6433a New syntax checker for Ruby: rubocop. 2013-04-20 23:48:31 +03:00
Olav Frengstad
f39fba1c87 Add support for nested dirs inside src/
When having nested directories (for instance `src/protocol/tm_protocol.erl`)
autocompilation would fail. This fix adds the abspath of all depdencies to
the codepath and sets compile option {i, _} to support both `deps/` and `lib/`.
2013-04-18 17:12:45 +02:00
LCD 47
6f214cbb6d Fix error highlighting in x?html/tidy. 2013-04-17 13:29:46 +03:00
LCD 47
b9700c7a6f Merge pull request #618 from liamcurry/py3kwarn
Added py3kwarn checker
2013-04-16 22:55:51 -07:00
LCD 47
78bc84fb5a Rework of the html/w3 checker. 2013-04-16 11:30:42 +03:00
LCD 47
742bcc1465 Typo. 2013-04-16 10:22:15 +03:00
Liam Curry
1653093baa Added py3kwarn checker 2013-04-15 17:15:49 -04:00
LCD 47
408287de6f Cleanup.
Adds an option g:syntastic_xhtml_tidy_ignore_errors to xhtml/tidy.
Cosmetic code changes.
2013-04-15 11:21:52 +03:00
LCD 47
f76ae1cc0f Go vet errorformat fix. 2013-04-14 09:38:51 +03:00
Kamil Kisiel
fdfa54e702 Add new "govet" checker for static checking of Go code with the vet tool 2013-04-13 20:56:44 -07:00
Kamil Kisiel
2472fe3ca0 Check for gofmt instead of go in the gofmt checker. 2013-04-13 20:35:27 -07:00
kongo2002
1ff67622c5 use $SHELL for scripts without shebang
thanks to @zhaocai
Closes #613
2013-04-13 12:29:57 +02:00
LCD 47
51001b66de Typo. 2013-04-12 13:29:47 +03:00
LCD 47
4604c97f06 Rework of the python checker. 2013-04-12 13:14:07 +03:00
LCD 47
49b0318fa6 Cleanup for tidy.
Added an user-defined global list of errors to ignore:
g:syntastic_html_tidy_ignore_errors.
Minor cleanup.
2013-04-11 23:00:25 +03:00
LCD 47
85d4631002 New checker for CSS: PrettyCSS. 2013-04-11 11:29:10 +03:00
LCD 47
13169b2477 New checker for C++: Google cpplint. 2013-04-10 23:44:04 +03:00
LCD 47
3cb4de3095 Skip unknown error messages. 2013-04-10 23:02:03 +03:00
LCD 47
7438ab376b Error format fix for checkbashisms. 2013-04-10 18:55:30 +03:00
LCD 47
bd2d5e37ed Error format fix for pylint. 2013-04-10 11:48:17 +03:00
LCD 47
633dfa60ec HTML checker using http://validator.nu. 2013-04-05 11:47:17 +03:00
Martin Grenfell
128ac00c59 vhdl/ghdl checker: use syntastic#makeprg#build 2013-04-04 22:53:40 +01:00
Jaydyou
57568622fe added vhdl syntax checker utilizing ghdl 2013-04-04 22:52:26 +02:00
LCD 47
54cad3696e Makes sparse aware of &tabstop. 2013-04-03 11:35:02 +03:00
LCD 47
3b8f38dcf9 Merge pull request #596 from supki/syntax-checker-coqtop
Added syntax checker for coq.
2013-04-02 11:58:08 -07:00
Matvey Aksenov
a3e5fb201d Added syntax checker for coq. 2013-04-02 22:36:00 +04:00
LCD 47
c8208cf24e Merge pull request #595 from joshuarh/simplify-coffeescript-checker
update the default coffeescript checker
2013-04-02 11:31:49 -07:00
LCD 47
8f75fd547c php/php: prevent xdebug.cli_color from messing with checks. 2013-04-02 11:03:01 +03:00
Joshua Hoff
d769273bcc update the default coffeescript checker
No need to generate a file when linting, as the coffeescript compiler
will do that for you.

This has been tested with coffeescript 1.6.2.

Also: use options over flags for readibility
2013-04-01 20:33:58 -05:00
LCD 47
02a39b1c56 Updates errorformat in coffee. 2013-03-28 19:04:29 +02:00
LCD 47
b9dc0829ef Fixes the sparse checker.
Also allows %v to be used in errorformat.
2013-03-27 16:06:47 +02:00
LCD 47
1247394786 Add subchecker to syntastic#makeprg#build() calls. 2013-03-27 11:17:15 +02:00
LCD 47
0ce25edcc6 Set subchecker. 2013-03-26 22:42:43 +02:00
Martin Grenfell
a3299364ca sh/checkbashisms: remove unneeded l: variable prefixes 2013-03-26 19:52:40 +00:00
Martin Grenfell
818b4a5365 Merge pull request #574 from aswna/master
Added new sh checker: checkbashisms.
2013-03-26 12:52:01 -07:00
LCD 47
73a72bdc25 Try to cope with older versions of jshint. 2013-03-26 21:40:20 +02:00
aswna
259f7717fb Use and adapt to more recent checkbashisms.pl. Some refactoring. 2013-03-26 00:40:50 +01:00
LCD 47
36f6cd471e Typo in cpp/gcc checker. 2013-03-25 17:12:13 +02:00
Martin Grenfell
9dd3052aac Merge pull request #553 from amouravski/master
Updated the dart syntax checker.
2013-03-25 02:24:05 -07:00
aswna
cf1a639795 Removed unsafe tcsh checker. 2013-03-25 09:19:58 +01:00
Gregor Uhlenheuer
c3615fb063 Merge pull request #571 from lcd047/cleanup_dupes
Checkers cleanup
2013-03-24 12:41:58 -07:00
Gregor Uhlenheuer
747fed932d Merge pull request #536 from trprice/master
Make.vim - Check g:syntastic_c_errorformat so that users can provide their own error format
2013-03-24 11:23:43 -07:00
aswna
01b3e89352 Added new sh checker: checkbashisms. 2013-03-23 01:30:26 +01:00
Martin Grenfell
46395567af Merge pull request #569 from lcd047/css_phpcs
PHPCS can check CSS files.
2013-03-21 01:32:38 -07:00
LCD 47
fb090ec277 Another bug fix. 2013-03-20 21:44:43 +02:00
LCD 47
e7aacdabf9 Bug fix. 2013-03-20 20:09:15 +02:00
LCD 47
1cab34063a Checkers cleanup.
Elliminates duplicate code.
Brings gcc cpp, objc, and ada checkers in synch with c.
Minor bug fixes.
2013-03-20 11:31:45 +02:00
LCD 47
1ae871e39d Cleanup: defer to php/phpcs.vim. 2013-03-20 09:07:07 +02:00
Brian Peiris
96658758d6 Add support for JSHint's secondary error format
JSHint has a secondary error format that includes a number related to the error message.

E.g. The normal error format is something like: 

.\Foo.js: line 2, col 5, Missing semicolon. (W033)

But the secondary error format includes a number in parentheses:

.\Foo.js: line 3, col 4, Blocks are nested too deeply. (2) (W073)"

I've changed the errorformat to read the message until it hits a space, instead of a period, so that these errors are included.
2013-03-19 17:27:38 -03:00
LCD 47
dbf6685b18 PHPCS can check CSS files. 2013-03-18 22:22:24 +02:00
Martin Grenfell
fa46a82860 ruby/mri: add highlight regex function
Make it work for unused variable warnings
2013-03-18 13:38:30 +00:00
Martin Grenfell
5117e76f99 Merge pull request #568 from lcd047/phpmd_syntax
Syntax highlighting function for phpmd
2013-03-18 05:54:05 -07:00
LCD 47
7846502a95 Added a syntax highlighting function. 2013-03-18 14:08:05 +02:00
Martin Grenfell
7250aae562 Merge pull request #567 from Chewie/syntastic_c_compiler
Added documentation for the g:syntastic_c_checker option
2013-03-18 04:00:03 -07:00
Martin Grenfell
073eae9884 Revert "python/flake8: add some backwards compat"
This reverts commit 0ef513a0a8.

The cases that I was trying to catch here were already caught further
along in the errorformat
2013-03-18 10:49:39 +00:00
Martin Grenfell
e01f3e2f6b Merge pull request #559 from troydm/master
javac checker maven executable option added
2013-03-18 02:49:43 -07:00
Martin Grenfell
c350107da2 jshint: add a comment version requirements 2013-03-18 09:49:00 +00:00
Martin Grenfell
b32d8f21be Merge pull request #562 from joshuarh/jshint-warnings
detect warnings in jshint
2013-03-18 02:47:59 -07:00
Martin Grenfell
291c3fa00b Merge pull request #563 from Lasall/vala-modules-copy
Work with copy of g:syntastic_vala_modules list.
2013-03-18 02:45:37 -07:00
Martin Grenfell
0ef513a0a8 python/flake8: add some backwards compat
make it match E and W for flake < 2.0
2013-03-18 09:42:22 +00:00
Kévin Sztern
d1897fe482 Added documentation for the g:syntastic_c_checker option 2013-03-17 22:45:43 +01:00
Chronial
1315a85aee recognize flake8 2.0 error output 2013-03-17 12:13:39 +01:00
Dominique Lasserre
0511f0a216 Work with copy of g:syntastic_vala_modules list. 2013-03-16 00:48:50 +01:00
Josh
f05a277f92 detect warnings in jshint
pass `jshint` the `--verbose` option to get 'W' or 'E' indicating
whether something is a warning or an error.

NOTE: this was tested with jshint 1.1.0 installed with `npm install
jshint`
2013-03-15 16:30:08 -05:00
troydm
b475f08fed maven executable option added 2013-03-13 20:00:17 +04:00
amouravski
964e17f4b3 Updated the dart syntax checker.
It now uses the correct path for the dart_analyzer, it uses the
machine readable format to provide more information.

The highlighter now highlights the exact span that the analyzer complains
about. Further, warnings are different from errors now.
2013-03-11 19:25:01 -07:00
Christian Höltje
2f4fc38053 Renamed version check function
Moved the `SyntasticIsVersionAtLeast()` into `util.vim` as
`syntastic#util#versionIsAtLeast()` as per @scrooloose's suggestion.
2013-03-08 11:58:49 -05:00
Martin Grenfell
2003c772b0 Merge pull request #465 from chazlever/master
Fix Flake8 Error/Warning Parsing
2013-03-08 07:10:55 -08:00
Martin Grenfell
e61aab2b12 Merge pull request #534 from xandox/master
Use mix for elixir if it available and vim started from project root
2013-03-08 06:53:48 -08:00
Martin Grenfell
eef491c5ac Merge pull request #538 from joshuarh/simplify-ruby-checker
remove unused function (because of 2519d83)
2013-03-08 06:50:24 -08:00
Martin Grenfell
7533269ae1 Merge pull request #540 from lcd047/chktex
New checker for TeX / LaTeX: ChkTeX.
2013-03-08 06:49:15 -08:00
LCD 47
ff3c05a413 Fix syntax highlighting.
The variable force_highlight_callback is gone.

Highlight functions are now consistently named
SyntaxCheckers_<filetype>_<checker>_GetHighlightRegex(), and they
take precedence over highlighting based on column.
2013-03-08 14:45:57 +00:00
Christian Höltje
6a1f624041 Typo: Check for puppet-lint, not puppet 2013-03-07 21:30:44 -05:00
LCD 47
387c3bc264 New checker for TeX / LaTeX: ChkTeX. 2013-03-02 09:15:23 +02:00
Josh Hoff
746d0c063f remove unused function (because of 2519d83) 2013-02-28 19:29:58 -06:00
Brendan Erwin
fe87bb8b03 This allows the overrides to work 2013-02-28 07:38:25 -05:00
Taylor Price
28adb9feb9 Add a check for the error messages variable so that users can specify their own error format. 2013-02-27 11:29:40 -08:00
Martin Grenfell
2519d83569 Merge pull request #483 from medlefsen/fix_mri_ruby
Ruby checker breaks with rvm when using "system" ruby
2013-02-26 07:46:37 -08:00
Ely Arzhannikov
9d7b358d3d always return list 2013-02-24 19:16:06 +06:00
Ely Arzhannikov
a5024b1176 use mix for elixir 2013-02-23 18:01:44 +06:00
Taylor Price
fe346c8a41 For each of thise files, the IsAvailable function was mistakenly named with GetLocList. 2013-02-21 14:57:35 -08:00
Taylor Price
91e8b1ce84 Change the - (dash) in the header guard to _ (underscore) to fix an unxepected characters error 2013-02-21 10:10:22 -08:00
Martin Grenfell
342a13eec2 Merge pull request #514 from dominic-goog/master
fix 'missing endfunction' error for dart
2013-02-21 08:30:10 -08:00
Martin Grenfell
fce786f59a Merge pull request #516 from mybuddymichael/master
Don't pass -fno-code to Haskell's ghc
2013-02-21 08:23:29 -08:00
Martin Grenfell
b7301ba258 Merge pull request #517 from trprice/master
Fix the "Missing :endfunction" in syntax_checkers\objc\gcc.vim
2013-02-21 08:21:48 -08:00
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +00:00
Martin Grenfell
31789e4e8e lisp/clisp: add a missing comma 2013-02-21 15:21:43 +00:00
Taylor Price
475f3f934c Change the endif on SyntaxCheckers_objc_gcc_IsAvailable to endfunction 2013-02-19 16:51:07 -08:00
Michael Hanson
dd4e3af44d Don't pass -fno-code to ghc 2013-02-19 15:19:04 -08:00
Dominic Hamon
a875cd2101 Update syntax_checkers/dart/dart_analyzer.vim 2013-02-19 13:14:21 -08:00
LCD 47
4842eed1ba Drop g:syntastic_perl_perlcritic_options.
This variable has been rendered obsolete by the standard mechanism
of g:syntastic_perl_perlcritic_args.
2013-02-16 09:34:58 +02:00
Martin Grenfell
0fcf795140 coffeelint: remove unused and unneeded coffelint args option 2013-02-15 10:14:34 +00:00
Martin Grenfell
1d681c546d vala: remove the option to disable it
This can be done with:

`let g:syntastic_mode_map={'passive_filetypes': 'vala'}` or by setting
`let g:syntastic_vala_checkers=[]`

Closes #502.
2013-02-14 15:52:40 +00:00
Martin Grenfell
c787bca6de twig: use syntastic#makeprg#build 2013-02-11 17:42:43 +00:00
Mikhail Vinogradov
417fd8b484 Added explicit call of escript
Added explicit call of escript, to run check, bypassing shell (actual for Windows)
2013-02-11 02:18:56 +04:00
Martin Grenfell
6acff371af rst: extract a temp var to a query 2013-02-10 16:50:49 +00:00
Martin Grenfell
3049323c74 Merge pull request #492 from tobyS/fix-rst-alternative-checker-binary
Fixed: Check for alternative rst2pseudoxml binary.
2013-02-09 09:52:48 -08:00
Martin Grenfell
df9ca84a22 html/tidy: retarded bugfix with s:Args not returning a value 2013-02-08 16:27:07 +00:00
Tobias Schlitt
1d3bbf2aae Fixed: Check for alternative rst2pseudoxml binary.
On some systems, the corresponding binary is named "rst2pseudoxml"
instead of "rst2pseudoxml.py".
2013-02-07 09:23:50 +01:00
LCD 47
b33e37470f Output from pylint should be sorted. 2013-02-06 16:27:49 +02:00
Martin Grenfell
368505eb60 coffee: split up coffee and coffeelint 2013-02-06 13:59:27 +00:00
LCD 47
f5dc5b1ad4 Off by one error, sorry. :( 2013-02-06 15:48:58 +02:00
LCD 47
b53072bee0 Munge the output of pylint in Vim rather than relying on sed(1). 2013-02-06 15:29:56 +02:00
Martin Grenfell
c41f2c8917 bugfix for c/ycm 2013-02-05 14:54:56 +00:00
Asai Masami
438fc33311 add cp932 to tidy.vim. 2013-02-05 21:52:27 +09:00
Matt Edlefsen
c658f06756 Remove broken rvm handling in mri ruby checker
RVM does not always provide an executable for  specific ruby version
that is loaded (the "system" version).

RVM, or whatever else the user uses, should always setup "ruby" to point
to the correct version so this can always be used.
2013-02-05 07:07:52 -05:00