Commit Graph

532 Commits

Author SHA1 Message Date
Buck Golemon
c039b0f128 fix pylint parsing 2012-03-11 22:04:47 -07:00
Martin Grenfell
ed515fc268 Merge pull request #198 from kongo2002/cpp_compiler_options
Fix custom compiler options handling for C/C++
2012-03-11 16:35:14 -07:00
kongo2002
adedb47ad7 refactoring of GetIncludeDirs() for C/C++ 2012-03-11 19:55:01 +01:00
kongo2002
6ce5880b81 set default C compiler options 2012-03-11 19:40:53 +01:00
kongo2002
c11c97da8b fix compiler options for C as well 2012-03-11 19:35:52 +01:00
kongo2002
85c347c14f fix custom c++ compiler options 2012-03-11 19:33:10 +01:00
Martin Grenfell
7a5bca349c Merge pull request #197 from kongo2002/cpp_include_dirs
Add include directories to c++
2012-03-04 14:46:25 -08:00
kongo2002
441506c061 cpp: add option to remove include errors 2012-03-04 21:08:04 +01:00
kongo2002
d81b360f64 add missing doc comment 2012-03-04 20:04:15 +01:00
kongo2002
8e2634ae7e add include directory functionality to cpp 2012-03-04 19:59:26 +01:00
Martin Grenfell
630a57dfef ruby: add the structure for jruby support
* move the existing ruby checker to syntax_checkers/ruby/mri.vim
* add a skeleton checker for jruby
* load mri by default but add an option to specify which ruby checker to
  load

This is in response to #185
2012-03-02 17:38:39 +00:00
Martin Grenfell
892cc2c232 refactor the error highlighting system
* remove the public SyntasticHighlightErrors() function
* shift the above code into s:HighlightErrors(). This is called
  automatically if g:syntastic_enable_highlighting is set
* to get the highlight regex we just look for a function called
  Syntastic_<filetype>_GetHighlightRegex
* to force this function to be called, each error item must have the
  'force_highlight_callback' key set

This code has one important functional change: now errors are *always*
highlighted if possible whereas previously they were only highlighted if
a call to SyntasticHighlightErrors was made.
2012-03-02 10:05:15 +00:00
Martin Grenfell
1f91303cdc php: prevent error duplication
Turn off `display_errors` and empty the `error_log` option so that
errors are guaranteed to be output to stdout

See #186 for discussion.
2012-03-02 09:27:10 +00:00
Martin Grenfell
de9f81b7e0 add an FAQ to the readme 2012-03-01 16:54:05 +00:00
Martin Grenfell
637182c181 python/pyflakes: report errors by default
The error messages that pyflakes outputs dont contain enough information
to classify them as errors or warnings. Apart from checking for all
known warning outputs and classifying the rest as errors (or vice versa)
there is no way classify.

Make the syntax checker class all results as errors. Individual warning
formats can be checked for later if they become a problem.

This addresses #189.
2012-02-28 15:19:32 +00:00
Martin Grenfell
66e69dc360 Revert "Revert "Spent a while trying to figure out why :helptags wasn't working properly with pathogen, but it turns out the h has to be capitalized.""
This reverts commit 40374f1b67.
2012-02-27 15:37:15 +00:00
Martin Grenfell
d88c76b950 Merge pull request #192 from tpievila/master
Show real errors only in ReST
2012-02-27 07:30:22 -08:00
Tomi Pieviläinen
15767983dd Show only real warnings in ReST 2012-02-27 17:27:54 +02:00
Martin Grenfell
c97042a3fd Merge remote-tracking branch 'artnez/php-force-display-errors'
Conflicts:
	syntax_checkers/php.vim
2012-02-27 15:18:39 +00:00
Martin Grenfell
6b643c83d3 Merge pull request #174 from lucash/master
php: fix lint if display_errors is off
2012-02-27 07:17:57 -08:00
Martin Grenfell
40374f1b67 Revert "Spent a while trying to figure out why :helptags wasn't working properly with pathogen, but it turns out the h has to be capitalized."
This reverts commit ad42147e9a.

This should not have been merged in - I failed at reading the diff.
2012-02-27 12:13:52 +00:00
Martin Grenfell
b5bf08a7cd Merge pull request #188 from aripollak/patch-1
Spent a while trying to figure out why :helptags wasn't working properly...
2012-02-27 04:08:51 -08:00
Ari Pollak
ad42147e9a Spent a while trying to figure out why :helptags wasn't working properly with pathogen, but it turns out the h has to be capitalized. 2012-02-23 11:30:47 -05:00
Martin Grenfell
bcfdab6a02 python: bugfix to pyflakes checker
dont refer to g:syntastic_python_checker since - due to a previous
commit - this is not guaranteed to exist any more.

This change should have been done in the aforementioned commit - but I
failed.
2012-02-23 13:24:34 +00:00
Artem Nezvigin
c5616d282f php is now forced to display parse errors, even in production environments 2012-02-22 12:43:42 -08:00
Martin Grenfell
d09c33072d Merge pull request #181 from rickeyski/master
Scala lang plugin
2012-02-21 01:37:20 -08:00
Rickey
70a0574d76 scala language plugin 2012-02-20 20:08:16 -05:00
Martin Grenfell
936f1406da Merge pull request #180 from harpyon/master
Small NASM syntax checker fix
2012-02-20 05:50:17 -08:00
Håvard Pettersson
5d1adc5bcd Small NASM syntax checker fix.
Prevent %include errors by including the file directory with -I.
2012-02-20 14:17:22 +01:00
Martin Grenfell
8ed25186bd Merge pull request #178 from harpyon/master
Add NASM support
2012-02-20 02:40:25 -08:00
Martin Grenfell
b2ec20ba50 Merge pull request #177 from rgiot/master
Z80 syntax
2012-02-20 02:38:41 -08:00
Martin Grenfell
d454a00615 split python checker out into 3 files
previously there were 3 checkers in the one file
2012-02-20 10:20:48 +00:00
Håvard Pettersson
debae428d2 NASM syntax checker fixes.
- Redirect output to /dev/null or NUL, to get rid of the trash .o file.
 - Some extra arguments to make sure NASM will always use the same
   settings.
2012-02-20 03:54:32 +01:00
Håvard Pettersson
90b7a379c3 Added NASM syntax checker. 2012-02-20 03:13:42 +01:00
Romain Giot
d751322218 Merge remote branch 'upstream/master' 2012-02-19 22:12:45 +01:00
Romain Giot
22d8063b0a Add z80 assembly language 2012-02-19 22:09:16 +01:00
Martin Grenfell
b4a7d47294 performance improvements: cache errors and warnings explicitly
There are many calls to s:Errors() and s:Warnings(), and previously the
location list was filtered once for each of these calls. This made vim
unusable when handling large location lists (with hundreds of entries).
Now we cache the errors and warnings explicitly when we cache the
location list.

Rework some of the minor methods so that they call s:Errors() or
s:Warnings() (which use the cached data) instead of calling
s:FilterLocList() directly (which is expensive).
2012-02-18 16:01:17 +00:00
Martin Grenfell
e44494558f minor performance improvements to the statusline function 2012-02-18 15:38:42 +00:00
Martin Grenfell
9594d34003 performance improvements for FilterLocList()
Remove the call to deepcopy() and use some alternative logic instead.

This improves performance massively for large location lists. More
aggressive caching is needed really though since this function is called
multiple times to return the same data.
2012-02-18 15:36:44 +00:00
Lucas Heuvelmann
c751a5ac77 php: fix output of lint if display_errors is off
display_errors might be turned of for php globally. In this case the
output of php -l does not contain the errors messages. Using this option
will turn the option on for the single call.
2012-02-16 23:35:02 +01:00
Martin Grenfell
3e80184d5f bump to v2.3.0 and update changelog and credits 2012-02-16 17:20:03 +00:00
Martin Grenfell
08d30dfa43 Merge pull request #172 from frimik/puppet-storeconfigs
puppet: enable --storeconfigs on 2.7
2012-02-14 01:27:17 -08:00
Mikael Fridh
f4a2433c16 puppet: enable --storeconfigs on 2.7
without --storeconfigs it's going to complain alot if you have any imported
resources in your manifests.
2012-02-14 10:15:17 +01:00
Martin Grenfell
cb6205254e puppet: update errorformat to ignore a general message
The checker was always outputting this if syntax errors were detected:
    err: Try 'puppet help parser validate' for usage,

So just ignore it. See #157
2012-02-13 09:55:43 +00:00
Martin Grenfell
6d34c70713 puppet: skip --ignoreimport for versions >= 2.7.10
This option was removed in 2.7.10 - as noted in #157.
2012-02-13 09:55:43 +00:00
Martin Grenfell
7781a7050f Merge pull request #171 from pneff/python-args
Additional parameter for Python checker
2012-02-13 01:14:57 -08:00
Patrice Neff
a79d079a63 Additional parameter for Python checker
The parameter `g:syntastic_python_checker_args` can be used to pass additional
arguments to the Python syntax checker. Example configuration:

    let g:syntastic_python_checker = "flake8"
    let g:syntastic_python_checker_args = "--ignore=E501 --max-complexity=10"
2012-02-13 09:00:26 +01:00
Martin Grenfell
253cfe3e82 Merge pull request #170 from gillesruppert/master
fix: javascript jshint config
2012-02-11 12:56:29 -08:00
Gilles Ruppert
be1091f251 rather than compare to '' we use the vimscript emtpy function as else the check does not work 2012-02-11 21:45:30 +01:00
Martin Grenfell
3be5136585 go: add gofmt checker from #150 2012-02-11 15:40:45 +00:00