Commit Graph

588 Commits

Author SHA1 Message Date
Martin Grenfell
913494386b Merge pull request #273 from lelutin/puppet_lint_arguments
Enable pass arguments to puppet-lint
2012-06-17 02:06:27 -07:00
Gabriel Filion
d798286bb7 Enable pass arguments to puppet-lint
Some users might want to disable some checks for puppet-lint if they do
not intend to follow all of the style recommendations. There is
currently no way of doing that.

By adding a global variable synstastic_puppet_lint_arguments, one can
now set arguments to pass to puppet-lint via .vimrc.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-06-17 03:33:49 -04:00
Martin Grenfell
ec9bf2e983 Merge pull request #265 from powerman/efm_perl
Fix: efm_perl missed some error messages
2012-05-28 15:07:34 -07:00
Alex Efros
1e99ed56b7 Fix: efm_perl missed some error messages
First example:

    $ echo -e 'if (0)\nsome();\n}' | perl -c -
    Semicolon seems to be missing at - line 1.
    syntax error at - line 2, near ")
    some"
    Unmatched right curly bracket at - line 3, at end of line
    - had compilation errors.

    $ echo -e 'if (0)\nsome();\n}' | perl syntax_checkers/efm_perl.pl -c -
    -:1:Semicolon seems to be missing

Second example:

    $ echo -e 'if (0)' | perl -c -
    syntax error at - line 1, at EOF
    - had compilation errors.

    $ echo -e 'if (0)' | perl syntax_checkers/efm_perl.pl -c -
2012-05-26 23:32:02 +03:00
Martin Grenfell
025fa81d98 Merge pull request #245 from xuhdev/remove-useless-win64-check
Remove some unnecessary win64 checks.
2012-05-22 00:54:00 -07:00
Martin Grenfell
6e7ac39ae1 Merge pull request #247 from irrationalfab/master
MacRuby/RubyMotion syntax checker
2012-05-22 00:51:43 -07:00
Martin Grenfell
acdffb3c15 Merge pull request #249 from jrk-/master
Java Syntax checker
2012-05-22 00:33:15 -07:00
Jochen Keil
a24e07a822 A very basic syntax checker for java files.
It will compile all *.java files in the pwd and apply the errorformat string
from quickfix.txt

Interesting additional features would be:

* @argument files
* setting the pwd for javac
* perform only a syntax check (javac currently always builds class files)
2012-05-13 22:00:34 +02:00
Fabio Pelosin
1158999c85 Added MacRuby/RubyMotion syntax checker. 2012-05-09 14:12:15 +02:00
Hong Xu
30d7462249 Remove some unnecessary win64 checks.
has('win32') is always true on Win64.
2012-05-08 20:31:20 +08:00
Martin Grenfell
7fc5246be4 html: rename w3c.vim to w3.vim (i fail @ naming files!)
Also, fix the header comments for tidy/w3 so they have the right
filenames
2012-05-01 15:23:22 +01:00
Martin Grenfell
5c159fd374 html: split the checkers into separate files
Previously the 2 checkers were in the same file - this is more "tidy"
(lol??).

Currently the logic to determine which checker is loaded is custom to
the checker. At some point the SyntasticLoadChecker() function should be
upgraded to be able to handle cases (like this one) where the name of
the checker doesnt imply the name(s) of the executables that have to be
checked for.
2012-05-01 15:14:42 +01:00
Martin Grenfell
fd297d7768 html: fixed mixed indenting 2012-05-01 14:50:17 +01:00
Martin Grenfell
976fa99928 Merge remote-tracking branch 'daniel-walker/w3-validator' 2012-05-01 14:49:10 +01:00
Martin Grenfell
03a58be0fe puppet: fix a bug with the syntastic_puppet_lint_disabled option
The logic for this option was reversed in 2 places. Puppet-lint should
have been getting disabled for old versions and if it wasnt installed,
but the logic was wrong.
2012-05-01 14:44:15 +01:00
Martin Grenfell
6829178908 Merge pull request #238 from jondavidjohn/master
PHP error not parsing
2012-04-20 08:50:58 -07:00
Jonathan Johnson
0e9927ca93 Add another PHP error clause to the list of parsables 2012-04-20 09:47:04 -05:00
Martin Grenfell
5c7f2b800d Merge pull request #227 from mschulkind/master
Stop clobbering global variables
2012-04-20 07:15:30 -07:00
Matthew Schulkind
4611645c18 Stop clobbering global options. 2012-04-20 10:11:07 -04:00
Martin Grenfell
96fd02e1f2 Merge pull request #229 from leepa/master
flake8: don't clobber the text with Syntax Error
2012-04-20 06:36:20 -07:00
Martin Grenfell
7deb54d283 Merge pull request #228 from kisielk/patch-2
Build all files with go build
2012-04-20 06:33:50 -07:00
Martin Grenfell
5c0074fba6 Merge pull request #223 from Fruneau/filter-out-invalid
Only keep "valid" entries in the error count.
2012-04-20 06:14:33 -07:00
Martin Grenfell
0278642ef6 Merge pull request #222 from ldx/c_configfile_fix
Fix makeprg construction.
2012-04-20 06:11:12 -07:00
Daniel Walker
4eb1a0e57a Modify the html checker to optionally use http://validator.w3.org/
instead of tidy.
2012-04-19 08:23:03 -07:00
Lee Packham
02e510eec4 Don't shoe horn 'syntax error' everywhere
It hides the actual warning/error from Syntastic - so don't do that.
2012-04-12 06:48:17 +01:00
Kamil Kisiel
16a7a87529 Build all files with go build 2012-04-11 08:19:57 -07:00
Martin Grenfell
4b61f4b2b9 Merge pull request #224 from kisielk/patch-1
go syntax checker using 'go build'
2012-04-03 06:26:56 -07:00
Kamil Kisiel
315e1ad9d2 support column number in go syntax checker 2012-04-01 10:12:51 -07:00
Kamil Kisiel
3cac7f39c1 go syntax checker using 'go build' 2012-03-29 07:48:52 -07:00
Florent Bruneau
999d3c1bb3 Only keep "valid" entries in the error count.
The location list returned by getloclist() may contain entries that are
not errorformat matches. By "definition", (see :help getqflist), matched
lines have the attribute "valid": 1 set, so only keep those lines in
error/warning list to avoid erroneous counts and strange behaviors.

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
2012-03-28 19:48:54 +02:00
ldx
c6407e55e8 Fix makeprg construction for cpp too. 2012-03-28 14:40:19 +02:00
ldx
2ef26e11e9 Fix makeprg construction.
Add space before appending the result of ReadConfig() to makeprg.
2012-03-28 14:22:17 +02:00
Martin Grenfell
e961f17c7c Merge pull request #220 from kongo2002/c_config
Add configuration file support for C/C++
2012-03-28 04:27:02 -07:00
Martin Grenfell
d868417061 Merge pull request #218 from dag/master
Make Haskell checker configurable
2012-03-28 04:19:18 -07:00
kongo2002
0f1ea022e9 add ReadConfig to C++ checker as well 2012-03-27 22:28:35 +02:00
kongo2002
c791c3103e add ReadConfig support to C syntax checker 2012-03-27 22:26:15 +02:00
kongo2002
d8f3aa5d50 add ReadConfig() function for C/C++ checkers 2012-03-27 22:15:06 +02:00
Dag Odenhall
8d6fe0d6c2 haskell: configurable ghc-mod arguments, default to support for HSP 2012-03-27 13:21:59 +02:00
Martin Grenfell
b4e85a8762 python/flake8: assume all outputs are errors - not warnings
The output of flake8 is ambiguous as to whether results should be
interpreted as warnings or errors. I have changed it to assume errors to
match the python/pyflakes checker.

In future we may want to change this or add items to the errorformat for
some specific warnings if they are annoying.

This fixes #203.
2012-03-27 10:41:37 +01:00
Martin Grenfell
62fb4e70e4 php: set error_reporting=E_ALL
setting it to E_PARSE causes some errors to be missed - e.g.

`$a[$b][] $c;`

will not cause an error to get reported as this is classed as a compile
error, not a parse error.

This should fix #206.
2012-03-27 09:41:50 +01:00
Martin Grenfell
0fab9ef09d Merge pull request #214 from jamezpolley/master
Fixes #202 - redict stderr in a way that doesn't break on versions of bash <4.0
2012-03-26 08:44:11 -07:00
Martin Grenfell
39881cdd82 Merge pull request #216 from kstep/vala-modules
vala: g:syntastic_vala_modules variable to set modules list via vim script
2012-03-26 08:16:35 -07:00
Konstantin Stepanov
3cc6bf5cdd vala: g:syntastic_vala_modules variable to set modules list via vim script 2012-03-26 15:27:45 +03:00
James Polley
7cd8efec70 Fixes #202 - redict stderr in a way that doesn't break on versions of
bash <4.0
2012-03-24 19:18:08 +11:00
Martin Grenfell
3c569d2b97 pass a filetype to SyntasticLoadChecker
This is needed to handle compound filetypes since we cant imply the
location of the syntax checker file from the filetype.

e.g. we want to load `syntax_checkers/python/pylint.vim`, but the
filetype is `python.django`. Previously this was causing `runtime
syntax_checkers/python.django/pylint.vim` to be executed.
2012-03-21 09:42:11 +00:00
Martin Grenfell
abd55ed2a6 Merge pull request #209 from bram85/master
Safely fetch 'col' key from error item, it may not exist.
2012-03-20 15:21:41 -07:00
Bram Schoenmakers
a6be206b71 Safely fetch the 'col' key of an error, it may not exist.
Since commit 892cc2, errors appeared on screen for example when checking
shell scripts.
2012-03-20 22:41:33 +01:00
Martin Grenfell
5be83cdcc7 Merge pull request #201 from bukzor/master
redirect pylint stderr
2012-03-20 04:27:52 -07:00
Li He
a9383527d6 python/pylint: add g:syntastic_python_checker_args
I borrow this from flake8.
2012-03-20 11:21:08 +00:00
Martin Grenfell
53c70feb8c Merge remote-tracking branch 'parantapa/master'
Conflicts:
	syntax_checkers/python/pylint.vim
2012-03-20 11:17:53 +00:00