Commit Graph

25 Commits

Author SHA1 Message Date
LCD 47
7795dff24b Add support for buffer versions of makeprgBuild variables.
New utility function syntastic#util#var().  Cleanup.
2014-02-12 21:25:51 +02:00
LCD 47
44d7ffd7e0 makeprgBuild() refactor: add *_before and *_after options. 2014-01-28 21:44:44 +02:00
LCD 47
b9accaa810 Minor cleanup: &cpo guards and formatting. 2014-01-03 11:29:08 +02:00
LCD 47
dcf25adf66 Better support for perlbrew. 2013-11-21 08:47:11 +02:00
LCD 47
7b36f9147f More detailed debugging.
Moved logging functions to autoload/syntastic/log.vim.
Cleanup debug functions.
Add a function to dump option variables.
2013-11-14 10:13:05 +02:00
LCD 47
fd5a52e0bd Cleanup. 2013-11-04 23:00:51 +02:00
LCD 47
6d81ac5dd0 Registry cleanup, stage 3.
Make syntastic#makeprg#build() a dictionary function.
Remove the mandatory checker argument to syntastic#makeprg#build().
2013-11-02 10:44:06 +02:00
LCD 47
3694908d05 Registry cleanup, stage 2.
(1) Checkers now have an _exec attribute, and an accessor getExec().
(2) CreateAndRegisterChecker() initializes _exec from an optional argument
'exec'.  If this argument is missing, 'name' is used instead.
(3) Functions SyntaxCheckers_*_IsAvailable() are now dictionary functions.
(4) Functions SyntaxCheckers_*_IsAvailable() are now optional.  When
they are missing, they are assumed to return executable(expand(self.getExec())).
(5) Argument 'exe' of function syntastic#makeprg#build() is now optional.
If this argument is missing, expand(self.getExec()) is used to set checker
executables.
2013-11-02 10:44:06 +02:00
LCD 47
28bce98a68 Registry cleanup, stage 1.
Make SyntaxCheckers_*_GetLocList() dictionary functions.
Pass a reference to the current checker to syntastic#makeprg#build().
Add an optional 'redirect' argument to CreateAndRegisterChecker().
Change the sh checker to use the new dictionary functions.
Add a new registry method getLocListRaw() (needed for the sh checker).
2013-11-02 10:44:06 +02:00
LCD 47
d238665385 Fix unwanted filter() and map() side effects. Minor cleanup. 2013-10-23 12:59:23 +03:00
LCD 47
ce2270e228 Perl checker: deal with the "-t" taint checking. 2013-09-29 22:13:36 +03:00
LCD 47
2e7a16bf65 Rework of the perl checker.
Helper script efm_perl.pl is no longer needed, error formatting is now
done in a preprocess function.

g:syntastic_perl_interpreter is now a list.  If set to a string,
the value is still used for backward compatibility, but a
deprecation warning is issued.  There is also a buffer-scoped
b:syntastic_perl_interpreter.

Warnings are are now checked only if no errors are found.
2013-09-29 17:29:21 +03:00
LCD 47
8c05dbf16e A first attempt at checking the exit code from the checkers. 2013-07-12 08:08:41 +03:00
LCD 47
6ba8e651cb Make shell escaping less produce fewer useless quotes.
Function inspired by tpope's vim-dispatch.
2013-07-04 21:04:20 +03:00
LCD 47
8751e32710 Bug fix: incomplete registering of cloned checkers.
Scenario:

- a C file is recognized as having filetype cpp
- run :SyntasticInfo
- run :setf c
- run :SyntasticInfo again

The only checker recognized will be oclint.  The reason is, oclint is
registered as a c checker when called from cpp initialization, and that
prevents registering other c checkers when calling ':setf c'.

Solution: always initialize all checkers for a filetype.
2013-06-29 13:03:28 +03:00
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +03:00
LCD 47
c64f49456e Syntax checker: pod/podchecker. 2013-05-20 20:57:02 +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
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
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +00: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
76d1d42d64 perlcritic: :retab the file to make the indenting consistent
Syntastic uses 4 space indents, update this file to be consistent.
2013-02-05 09:11:21 +00:00
LCD 47
ab7876eee0 Perl syntax checker using perlcritic. 2013-02-03 20:42:04 +02:00
Martin Grenfell
e0b8e87c93 refactor all the syntax checkers to use the new API and dir layout 2013-01-27 20:08:30 +00:00