Commit Graph

28 Commits

Author SHA1 Message Date
LCD 47
8393a3c7a2 Cosmetic cleanup. 2017-09-15 21:04:16 +03:00
LCD 47
dac07db617 Cleanup: shut up most vint warnings. 2015-03-25 18:44:34 +02:00
LCD 47
1ba96436c1 Cleanup: handling versions. Minor optimisation. 2015-01-23 11:39:42 +02:00
LCD 47
1d2f8d514a Formatting: folding. 2015-01-04 12:46:54 +02:00
LCD 47
ce89396808 Checker-specific logging.
New debug level 32, for logging tracing checkers.
New method checker.log().
Cleanup.
2014-10-06 22:19:24 +03:00
LCD 47
daf74923b7 Escape Festschrift, vol. 2: add function getExecEscaped(). 2014-02-07 11:19:30 +02:00
LCD 47
f5a45095e2 Escape Festschrift: getExec() needs to be escaped before being used. 2014-02-06 16:50:27 +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
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
bedf88c184 Cleanup parsing versions. 2013-09-24 08:39:07 +03:00
LCD 47
fd38284b28 Cleanup. 2013-06-07 20:56:39 +03:00
LCD 47
4428f7e54f CoffeeScript changes, again.
Version check: errorformat depends on the combination of node version
and CoffeeScript version.  When run under recent nodes, only 1.6.2 and
newer produce errors we know how to parse.

Changed again "-t", this time to "-cp".
2013-06-05 17:00:34 +03:00
LCD 47
3c2549c6cd Changed arguments for coffee-script, again.
With "-t" some errors (e.g. "unexpected INDENT") are not caught.
Apparently "-n" works better.
2013-06-05 15:56:07 +03:00
LCD 47
049a32e578 Remove obsolete comment. 2013-06-05 11:36:42 +03:00
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
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +03:00
LCD 47
b4e0bdfe12 Coffee checker: "--lint" is now deprecated. 2013-05-26 17:47:52 +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
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
1247394786 Add subchecker to syntastic#makeprg#build() calls. 2013-03-27 11:17:15 +02:00
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +00:00
Martin Grenfell
368505eb60 coffee: split up coffee and coffeelint 2013-02-06 13:59:27 +00: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