Commit Graph

546 Commits

Author SHA1 Message Date
Strahinja Val Markovic
0fef368da2 Refactor ycm usage into separate files 2013-01-22 20:29:47 -08:00
Strahinja Val Markovic
b93e51e260 c, objc and objcpp support 2013-01-14 21:12:53 -08:00
Strahinja Val Markovic
0040afbaf6 Adding support for ycm to the cpp filetype
Conflicts:
	syntax_checkers/cpp.vim
2013-01-14 21:03:24 -08:00
Martin Grenfell
37e8e7d427 Merge pull request #436 from rumblesan/master
Use scala compiler, not interpreter, for syntax checking
2013-01-08 01:42:37 -08:00
Peter Hall
537900d6b2 Fixing puppet-lint syntax check when using
syntastic_puppet_lint_arguments variable
2013-01-08 15:50:43 +11:00
Guy John
850046bc08 Use scala compiler instead of interpreter
Using the scala compiler instead of the interpreter to check the syntax
means that an error will not be raised if there is a package
decleration.

Also, stopping the compiler after the parser stage stops errors being
raised when importing from other files in your project.
2013-01-03 12:35:46 +00:00
Martin Grenfell
10c845d1f5 add a makeprg builder
The problem
---

Some people want to change the syntax checker args and/or executable.
Currently they have to create their own checker to do this.

Solution
---

Create a standard API for building a makeprg that allows users to set
global variables to override the exe or args.

This API is in use in the coffee and python/flake8 checkers - as
proofs of concept.

So, if the user wanted to change the args that get passed to `flake8`
they can now set `let g:syntastic_python_flake8_args="--foo --bar"` in
their vimrc. Similarly they could set `let
g:syntastic_python_flake8_exe='python foo.py'`
2013-01-02 13:05:27 +00:00
Martin Grenfell
5fbe86db7b Merge pull request #428 from powerman/efm_perl
Efm perl: few fixed
2013-01-02 05:02:48 -08:00
Martin Grenfell
ed8ef51f49 Merge pull request #427 from troydm/master
javac checker quotes changed to fnameescape
2013-01-02 04:58:50 -08:00
Martin Grenfell
f5b0abb58a Merge pull request #430 from maksimr/master
Added Dart support
2013-01-02 04:56:24 -08:00
Tom Jakubowski
56d1935dd2 Ignore tidy warning about "search" value for <input> type attribute 2012-12-24 04:30:42 -06:00
Maksim Ryzhikov
62d1da3b8d add support dart 2012-12-21 22:44:58 +04:00
Alex Efros
68c381306e efm_perl: add support for checking - (stdin)
In simple case it just miss warnings:
  $ echo '$a=5;' | perl syntax_checkers/efm_perl.pl -c -w -
  (nothing, while it should be this:)
  W:-:1:Name "main::a" used only once: possible typo
In complex cases with some other errors it show crazy warnings
in crazy line numbers.
Use case when efm_perl run on STDIN can be found in issue#261.
2012-12-19 17:18:25 +02:00
Alex Efros
02a99d0e35 efm_perl: fix warning about uninitialized $opt_I
$ perl syntax_checkers/efm_perl.pl -c -w /dev/null
Use of uninitialized value $opt_I in split at syntax_checkers/efm_perl.pl line 94.
2012-12-19 17:10:58 +02:00
troydm
9f798fa4ef javac quotes changed to fnameescape 2012-12-19 18:20:38 +04:00
troydm
e25a3efa33 javac checker path seperator related bugfix added 2012-12-19 17:43:08 +04:00
troydm
b476114461 added config file support for javac checker and windows os support 2012-12-19 17:23:58 +04:00
Martin Grenfell
7353b32d77 perl: add -Tc to makeprg if the shebang contains -T
If the shebang contains -T, then the makeprg looks like:
    perl '/path/to/efm_perl.pl' -c -w '/tmp/foo.pl' -Tc

Mods to syntastic#util#ParseMagicNumber
 * rename it to ParseShebang (since this name seems more common)
 * return an empty result set rather than 0 so callers dont have to
   check if empty()
2012-12-18 09:38:33 +00:00
Florent Bruneau
29d5b88e27 c/c++: force language in compiler invocation.
That way, the files are properly treated as C/C++ even when they don't
have the standard file extension

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-16 18:44:20 +01:00
Florent Bruneau
4b0b81cddc c/c++: add an option to ignore default include dirs.
Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-16 18:44:20 +01:00
Florent Bruneau
91f3af2862 c: allow using clang to check C.
Since clang as a interface compatible with gcc's, use the gcc backend for
both.

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-12-15 13:41:23 +01:00
Martin Grenfell
163d5fb370 php: add a bit of doc at the top 2012-12-05 23:34:13 +00:00
Adam Fairbrother
c253e3e4d9 Update syntax_checkers/efm_perl.pl
Added a semi colon in that broke perl syntax checking.
2012-12-05 12:57:47 -08:00
Martin Grenfell
fc4ec2533c Merge branch 'load_any_checker' 2012-12-04 09:33:34 +00:00
Martin Grenfell
2c0abf4515 perl: fix some comments that got slightly screwed 2012-12-03 23:55:54 +00:00
notbugger
558de5a58c Update syntax_checkers/efm_perl.pl
Use warnings pragma instead of warnings flag.
2012-12-03 15:42:31 -08:00
Martin Grenfell
42480a01a1 modify SyntasticLoadChecker to load any checkers present
Previously we were only loading "official" checkers that had been added
to syntastic. Now we load any checker that is in the right directory.

This allows anyone to add custom checkers to any filetype that uses
`SyntasticLoadChecker()`
2012-12-03 21:22:44 +00:00
Martin Grenfell
6d5a604251 Merge pull request #409 from jhickner/master
Add -fno-code to the call to ghc-mod, which speeds up haskell syntax checking
2012-12-03 03:02:39 -08:00
Martin Grenfell
11907f6907 Merge pull request #413 from jgrande/master
docbook checker: added quotes to args in expand() call
2012-12-03 01:59:09 -08:00
Martin Grenfell
d4e74d81d8 typescript: dont need to escape the space inside a string 2012-12-03 09:57:06 +00:00
Martin Grenfell
1b237eba14 Merge pull request #416 from jb55/typescript
Fix TypeScript errorformat for latest version of the compiler
2012-12-03 01:56:27 -08:00
Martin Grenfell
ac0c732f6a Merge pull request #410 from dbarnett/loaded_flag
Set g:loaded_FOO_syntax_checker in syntastic.vim, not every ft file.
2012-12-03 01:52:23 -08:00
Bill Casarin
562a37adce Support zero or more spaces at the end of a filename in the typescript errorformat 2012-12-01 21:07:51 -05:00
Artem Nezvigin
4126760bca Add python checker that uses python itself
The advantage to this is that no 3rd party modules are required. People
new to Python probably won't have flake8/pyflakes/pylint installed. This
will get them basic syntax checking (no linting) out of the box.
2012-12-01 12:17:46 -08:00
Bill Casarin
7ceba36412 Fix typescript errorformat for latest version of the compiler 2012-11-30 10:13:12 -05:00
Juan Grande
45f5437088 docbook checker: added quotes to args in expand() call 2012-11-29 09:07:25 -03:00
David Barnett
dcac33ecc0 Set g:loaded_FOO_syntax_checker in syntastic.vim, not every ft file. 2012-11-26 21:44:43 -08:00
Jason Hickner
9f9204415b fix typo 2012-11-23 16:20:04 -08:00
Jason Hickner
02ab1c9df0 add the -fno-code ghc option to speed up checking
Since we're only using ghc to check and lint the file and not actually create output, we can pass -fno-code which omits code generation and speeds up the check quite a bit.
2012-11-23 16:14:53 -08:00
Martin Grenfell
122e88b82a Merge pull request #365 from coryf/erb-ruby-exec-setting
Add support for changing the ruby version for erb
2012-11-21 02:07:20 -08:00
Martin Grenfell
ccecbcb460 javascript/jsl: update conf flag option
Make it so you only have to set g:syntastic_javascript_jsl_conf to
"/path/to/conf" rather than "-conf /path/to/conf"

Closes #405
2012-11-19 22:20:29 +00:00
Martin Grenfell
deaa089884 sass checker: use sass's caching to speed up checking 2012-11-19 09:59:14 +00:00
Martin Grenfell
aba5dd4757 Merge pull request #393 from ChristophMartin/syntax_checkers/go
Fixes Golang Syntax Checker
2012-11-17 11:56:50 -08:00
Martin Grenfell
01340e4de3 Merge pull request #387 from marcparadise/erlang-otp-support
Add typical deps locations for includes
2012-11-17 09:18:46 -08:00
Martin Grenfell
0a7b21d602 Merge pull request #394 from jjimenezlopez/master
The warnings were shown as errors when using flake8
2012-11-14 11:50:55 -08:00
Martin Grenfell
d448f180e4 php checker: a bunch of refactors
* only check `executable()` for the sub checkers once - at the top of
  the script
* recapitalize `s:getPHPMDErrors` to `s:GetPHPMDErrors` errors for
  style consistency
* simplify the logic in `SyntaxCheckers_php_GetLocList`
2012-11-13 08:41:09 +00:00
Martin Grenfell
83611198b4 Merge pull request #395 from harijari/add-phpmd-support
Added support for phpmd qa tool at php filetype.
2012-11-13 00:32:15 -08:00
kongo2002
fd173f1c91 move haskell syntax checkers into separate subdir 2012-10-29 22:22:28 +01:00
kongo2002
6942425b44 Merge remote-tracking branch 'bitc/haskell-hdevtools' 2012-10-29 21:09:54 +01:00
Jarek Sobiecki
6040ab8d54 Added support for phpmd qa tool at php filetype. 2012-10-27 22:20:25 +02:00