Commit Graph

26 Commits

Author SHA1 Message Date
LCD 47
4708cdd122 Add a mechanism for handling checkers disabled for security. 2015-07-01 10:56:09 +03:00
LCD 47
d75f3e5e8e Buffer-local security guards for perl/perl, elixirelixir, and r/svtools. 2015-07-01 01:22:41 +03:00
LCD 47
31cba018b3 Safety net: avoid suffixesadd interfering with findfile(). 2015-06-26 07:28:50 +03:00
LCD 47
e46c64701c Bug fix: more findfile() fun. 2015-06-23 13:55:22 +03:00
LCD 47
a728268d73 Bug fix: finding files in parent directories.
Checkers pc_lint, javac, flow, C compilers: findfile() should start in
the current file's base directory rather than the current directory.

Elixir checker: use the more efficient findfile() instead of
syntastic#util#findInParent().
2015-06-22 23:10:20 +03:00
LCD 47
dac07db617 Cleanup: shut up most vint warnings. 2015-03-25 18:44:34 +02:00
LCD 47
47eabae37d New global option: "shell".
Undocumented option "bash_hack" is gone.
New function syntastic#util#system(), that sets up the environment and
is now used consistently everywhere.
Unrelated fix for the elixir checker (syntax).
2015-03-12 19:20:06 +02:00
LCD 47
69d20efc62 Elixir: handle warnings. 2015-03-09 07:50:40 +02:00
LCD 47
1d2f8d514a Formatting: folding. 2015-01-04 12:46:54 +02:00
LCD 47
d1b401609b Bug fix: glob(), globpath(), and expand() should ignore wildignore. 2015-01-04 09:01:55 +02:00
LCD 47
4e9e08b509 Change case for constants' names.
Avoid poluting saved sessions when &sessionoptions contains "globals".
2014-10-17 10:28:05 +03: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
1d19dff701 Security: disable the elixir checker by default.
This executes the code your files. This is probably fine if you wrote
the files yourself, but it can be a problem if you're trying to check
third party files. If you are 100% willing to let Vim run the code in
your files, set g:syntastic_enable_elixir_checker to 1 in your vimrc.

References:

https://groups.google.com/d/msg/elixir-lang-talk/B29noPHvQ-8/9JvSGPop7n0J
2014-07-16 18:39:52 +03: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
3d614fb2bd Cleanup. 2013-07-06 09:08:07 +03:00
Thomas Holmes
e74843c941 Mix needs the cwd to be set to the mix file. 2013-07-05 22:32:55 -04:00
Thomas Holmes
8f363a4ecb Fix Elixir mix detection.
Syntax checker now looks up thorugh its parents to find if it is part
of a mix project.
2013-07-05 17:22:10 -04:00
LCD 47
d3354f175c Make syntastic#makeprg#build() aware of filetypes. Fixes #667. 2013-05-31 21:05:45 +03:00
LCD 47
1247394786 Add subchecker to syntastic#makeprg#build() calls. 2013-03-27 11:17:15 +02:00
Ely Arzhannikov
9d7b358d3d always return list 2013-02-24 19:16:06 +06:00
Ely Arzhannikov
a5024b1176 use mix for elixir 2013-02-23 18:01:44 +06:00
Martin Grenfell
16424e5761 add guards to all checkers
goddamn I love macros
2013-02-21 15:50:41 +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