Commit Graph

528 Commits

Author SHA1 Message Date
LCD 47
6ea7796730 Merge remote-tracking branch 'JustinAzoff/bro' 2014-05-09 11:47:44 +03:00
LCD 47
653a02a4c1 Some versions of phcs produce an extra column: fix errorformat. 2014-05-07 20:53:02 +03:00
LCD 47
02d07313aa Merge branch 'multi' 2014-05-06 11:14:50 +03:00
LCD 47
8c1c13e94e Contributing guide: add TOC; formatting. 2014-05-04 14:09:47 +03:00
LCD 47
dc02d66648 Update the contributing guide. Make :SyntasticInfo print version. 2014-05-04 13:58:25 +03:00
LCD 47
43e8cb955e More clisp fixes.
Give up trying to persuade clisp not leave behind junk files.
Fix errorformat.
2014-05-03 11:45:02 +03:00
LCD 47
24eab03135 clisp: fix argument order. 2014-05-02 21:04:09 +03:00
LCD 47
ad991127a6 New checker for less and css: recess (@pixelastic). 2014-04-30 10:27:01 +03:00
LCD 47
b9f741e57c Attempt at making multiple buffers work properly.
Propagate b:syntastic_loclist to all buffers mentioned in loclists.

Try to prevent inadvertent closing of the loclist window if all errors
are in included files, by saving the main buffer owner as a variable
local to the quicklist buffer.
2014-04-29 14:31:43 +03:00
LCD 47
75c439fc24 Manual: add a note about PowerShell. 2014-04-27 20:12:04 +03:00
LCD 47
2a770da3a0 GitHub has changed the addresses for user content. 2014-04-26 10:05:02 +03:00
LCD 47
9d4b173493 README: minor update.
The official way to install pathogen has changes slightly.
Add a link to the syntax checker guide.
2014-04-26 08:09:03 +03:00
LCD 47
4b00bf5b2e Python checkers: workaround for GNU readline brain damage.
On terms that support smm / rmm (f.i. xterm), initializing readline
prints the smm sequence, regardless of whether stdout is a terminal or
not, which in turn can make checkers' output unparseable.

Workaround: set TERM to dumb before calling the checkers.
2014-04-23 21:16:41 +03:00
LCD 47
3c07df5dfc Cleanup: lock some variables. 2014-04-23 14:45:21 +03:00
LCD 47
02cbebdfab Cleanup: fix two vimlint warnings. 2014-04-22 21:58:32 +03:00
LCD 47
125442f178 tslint: cleanup. 2014-04-21 13:07:39 +03:00
LCD 47
54bb9b4b8b haxe and dartanalyzer: fix syntax highlighting. 2014-04-21 08:41:44 +03:00
LCD 47
618b41428b Merge remote-tracking branch 'cww/master' 2014-04-19 10:14:05 +03:00
LCD 47
ebbcdd0c1a Cleanup for java/javac. 2014-04-19 10:03:53 +03:00
LCD 47
177292cafa Cleanup for the new aggregate_errors. 2014-04-19 09:09:48 +03:00
LCD 47
99cbe5d011 HTML Tidy: add a note about HTML Tidy for HTML5.
Some people seem to find it easier to look at the sources than read the wiki,
so mention HTML Tidy for HTML5 here, too. :)
2014-04-17 23:08:22 +03:00
LCD 47
4dbb652763 New option: syntastic_sort_aggregated_errors.
Aggregated error lists are now sorted by default.
2014-04-17 22:09:12 +03:00
LCD 47
68131a7679 Bug fix: error sorting.
Error sorting can't be done as a postprocess function called from
SyntasticMake(), since the final values of some relevant fields (f.i.
type) might not be known yet at that point.  Solution: move sorting to
getLocListRaw(), after per-checker quiet_messages.  New checker methods
getWantSort() / setWantSort() are needed.

Second problem: some checkers return screen columns mixed with byte
indices.  Solution: compute screen columns as needed.  Sadly, everything
about working with screen columns is fragile.
2014-04-16 22:16:40 +03:00
LCD 47
b4320f19dd oclint: option "-text" is obsolete. 2014-04-16 00:15:46 +03:00
LCD 47
4c18240e8d Formatting. 2014-04-15 09:09:37 +03:00
LCD 47
29843ed7fb Minor cleanup. 2014-04-14 12:08:27 +03:00
LCD 47
f161992c11 vimlint: a more efficient IsAvailable(). 2014-04-14 09:06:52 +03:00
LCD 47
4b9e87499d README: clarifications for calling multiple checkers. 2014-04-14 08:43:12 +03:00
LCD 47
41edfe34c7 New checker for plist XML: plutil. 2014-04-13 19:59:54 +03:00
LCD 47
81313611ae Manual: minor cleanup. 2014-04-10 10:56:20 +03:00
LCD 47
9cf21436ce New checker for haskell: scan. 2014-04-10 09:59:36 +03:00
LCD 47
62fde00516 Hdevtools: fix column calculations. Cleanup. 2014-04-10 09:45:11 +03:00
LCD 47
841087faba Hlint: fix column calculations. 2014-04-10 09:00:13 +03:00
LCD 47
30198e1091 Manual: add a note about vim-virtualenv. 2014-04-09 21:17:38 +03:00
LCD 47
2a1e0948b6 R svtools: disable the checker by default, for security reasons. 2014-04-05 09:16:04 +03:00
LCD 47
e7662b9469 New checker for R: svtools. 2014-04-05 09:15:53 +03:00
LCD 47
6ad57016c1 New checker for R: lint. 2014-04-05 09:15:10 +03:00
LCD 47
6d05d1735a README: add anchors for FAQ items. 2014-04-02 22:47:09 +03:00
LCD 47
a62fc9eeba README: minor update. 2014-04-02 21:32:34 +03:00
LCD 47
82bff20b02 README: change address for YouCompleteMe. 2014-03-30 21:11:39 +03:00
LCD 47
8d2ac06820 Minor rephrase in the manual. 2014-03-30 21:10:20 +03:00
Justin Azoff
668a08bfa7 Add new checker for bro: bro.
This requires the new --parse-only cli option that will be in an
upcoming bro release.
2014-03-27 17:55:09 -04:00
LCD 47
0c557bfca6 jshint: require version 1.0.0 or later. 2014-03-25 19:59:50 +02:00
LCD 47
a781914a16 Yet more pylint versioning delirium. 2014-03-24 15:03:50 +02:00
LCD 47
f6d584bc63 splint: add errorformat sequences for Windows. 2014-03-23 06:25:59 +02:00
LCD 47
94e0e73c4e Add a note to the manual about Eclim. 2014-03-20 07:34:49 +02:00
LCD 47
4ded4f4047 Expand a few config parameters. 2014-03-20 07:18:30 +02:00
LCD 47
c8f562f0f2 ESLint: add version check; expand config parameter. 2014-03-20 06:44:01 +02:00
LCD 47
dc6bb11215 Bump version number. 2014-03-10 15:54:00 +02:00
LCD 47
2850d4145a Minor cleanup. 2014-03-10 15:50:58 +02:00
LCD 47
da6520c69f \V<pattern> regexps can spell trouble if <pattern> contains backslashes. 2014-03-09 22:21:29 +02:00
LCD 47
223d00a0f0 phpcs is slow as a css checker, remove it from the defaults. 2014-03-09 22:00:12 +02:00
LCD 47
013b425c26 Make "g:syntastic_<filetype>_checkers = []" work as expected. 2014-03-08 21:36:36 +02:00
LCD 47
2eb60cb586 Version tracking. 2014-03-08 09:27:21 +02:00
LCD 47
0de089b85d Allow foreign checkers to call foreign preprocess and postprocess functions. 2014-03-04 17:18:59 +02:00
LCD 47
c18065ea52 Security: disable the perl checker by default. 2014-03-03 09:43:14 +02:00
LCD 47
fb71514648 Move preprocess functions to their own file. 2014-02-26 10:31:38 +02:00
LCD 47
e323437303 More preparations for the foreign checkers feature. 2014-02-24 11:04:34 +02:00
LCD 47
25271f89ae Add buffer-local versions for auto_loc_list and loc_list_height. 2014-02-24 10:10:18 +02:00
LCD 47
b0191a144c Refactor of quiet_message filters.
Optimisation: merge handling of global and per-checker filters.
Feature: allow [] and '' values for quiet_messages filter elements.
Feature: allow overrides for quiet_messages filters.
Feature: buffer-local auto_jump and quiet_messages.
Safety: add magic specifiers to catch regexps.
Cleanup: minor restructuring for the forthcoming foreign checkers
feature.
2014-02-24 01:10:33 +02:00
LCD 47
2940b0c721 Bug fix: checker ordering. Formatting. 2014-02-23 11:47:52 +02:00
LCD 47
47e5739f2e Formatting.
Improved folding.
Consistent naming of private methods.
Moving a few functions arround.
2014-02-23 11:07:39 +02:00
LCD 47
0f3a1bf450 Cleanup.
Enforce sane loading order.
Group global initialization.
Minor logging fixes.
New option: g:syntastic_bash_hack.
2014-02-23 10:22:37 +02:00
LCD 47
c658ff15a5 Registry refactor.
Simplify registry data structure.
Simplify registru functions.
Optimisations.
2014-02-17 23:32:53 +02:00
LCD 47
fd5fb851da Minor cleanup. 2014-02-13 07:50:01 +02:00
LCD 47
d304890946 Minor cleanup. 2014-02-13 07:43:48 +02:00
LCD 47
70746c0f5f Option shellxescape has been added in Vim 7.3.446. 2014-02-13 07:09:20 +02:00
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
Joshua Rahm
0eed307fdb added syntax checking for .asm and .s files using gcc 2014-02-07 20:51:59 -07:00
LCD 47
8e49a6cfa7 Bug fix: pilot error adding g:syntastic_extra_filetypes. 2014-02-07 16:53:28 +02:00
LCD 47
b9cddb729f Add support for g:syntastic_extra_filetypes.
This is useful when registering checkers outside syntastic.
2014-02-07 11:37:28 +02: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
ac09497345 Add shellcheck as zsh checker. 2014-02-05 09:31:50 +02:00
LCD 47
9c804a7be8 Bug fix: default highlighting incorrectly computes end of line. 2014-02-02 18:16:15 +02:00
LCD 47
dfc94ad8f8 New checker for texinfo: makeinfo. 2014-02-02 17:16:25 +02:00
LCD 47
650ee9c309 Allow makeprgBuild() arguments to be lists.
String arguments to makeprgBuild() are used unchanged.  Lists, both
inside checkers and in user variables, have their elements run through
syntastic#util#shescape() first.  This solves an otherwise untractable
escaping problem.
2014-02-02 12:20:47 +02:00
LCD 47
8a588134f1 Cleanup: minor optimisations, formatting. 2014-02-01 18:44:04 +02:00
LCD 47
4948e5c254 Remove the gnumake checker.
There are situations when `make -s` can get stuck in a loop, even if
`make` itself would finish just fine.  When this happens, Vim gets stuck
too, and has to be killed.
2014-02-01 08:25:26 +02:00
LCD 47
d1cf6fcfac More debug logs. 2014-02-01 08:23:40 +02:00
LCD 47
d523ae9787 Add &shellquote to debug logs. 2014-01-30 20:31:47 +02:00
LCD 47
2b3df92350 New jump mode for g:syntastic_auto_jump.
If g:syntastic_auto_jump is set to 2, jump only if the first issue found
is an error.
2014-01-30 13:20:40 +02:00
LCD 47
46a2181849 Cleanup for gnumake. 2014-01-29 10:22:57 +02:00
LCD 47
8aa2a6f4c1 Cleanup. 2014-01-29 01:12:42 +02:00
LCD 47
552078320c Further refactor: remove SyntasticMakeprgBuilder class. 2014-01-29 00:31:06 +02:00
LCD 47
44d7ffd7e0 makeprgBuild() refactor: add *_before and *_after options. 2014-01-28 21:44:44 +02:00
LCD 47
7434054e21 Optimisation: cache statusline flag. 2014-01-28 17:30:22 +02:00
LCD 47
f3240e6001 Cleanup: shut up lint warnings, formatting, doc nit. 2014-01-26 09:10:26 +02:00
Sergey Tatarintsev
0973ba27b8 Add bemhtml syntax checker 2014-01-24 17:19:39 +02:00
LCD 47
87e237a9d1 New checker: vimlint. 2014-01-24 11:58:57 +02:00
LCD 47
c78cf647a3 Remove deprecation warning for hasErrorsOrWarningsToDisplay().
Detecting whether hasErrorsOrWarningsToDisplay() is the same as
!isEmpty() can't be done reliably.  Just leave it alone for now.
2014-01-22 23:19:21 +02:00
LCD 47
d629be9e8d Workaround for powerline: resurrect hasErrorsOrWarningsToDisplay(). 2014-01-22 22:07:11 +02:00
LCD 47
e30c80623d Bug fix: loclist clobbered by filter().
Loclist cleanup: hasErrorsOrWarningsToDisplay() == !isEmpty().
Loclist cleanup: rename filteredRaw() --> getRaw().
Loclist cleanup: rename toRaw() --> copyRaw().
2014-01-22 21:14:31 +02:00
LCD 47
e4b77ddcd9 Bump version number. 2014-01-20 08:59:43 +02:00
LCD 47
9057e3eff5 Bump version number. 2014-01-14 07:31:06 +02:00
LCD 47
327ba4c415 Optimise loclist.filter(). 2014-01-04 10:01:43 +02:00
LCD 47
ee3c56c6f7 New feature: message filtering.
New options: g:syntastic_quiet_messages, and a per-checker version
of it named g:syntastic_<filetype>_<checker>_quiet_messages.
Option g:syntastic_quiet_warnings is now deprecated.
Option g:syntastic_ignore_files now refers only to files that shouldn't
be checked.
2014-01-04 10:01:43 +02:00
Joshua Rahm
e86385f789 added glsl checker 2013-12-27 01:07:08 -07:00
Andy Earnshaw
7b29bea72d New syntax checker actionscript/mxmlc 2013-12-20 23:35:29 +00:00
LCD 47
1852b5d386 :SyntasticInfo now takes an optional argument.
Added several clarifications to the manual.
2013-12-16 18:06:30 +02:00
LCD 47
6aafacbbb8 Update: dart_analyzer has been replaced by dartanalyzer. 2013-12-13 13:51:55 +02:00
LCD 47
77c4eb3eec Workaround for autocmd brain damage.
Vim doesn't call autocmd commands in a predictible order, which can lead
to missing filetype when jumping to a new file with `lrewind`.
2013-12-04 19:39:30 +02:00
LCD 47
b89c644468 Fix an infinite loop in syntastic#util#findInParent().
As a side effect, also fix some of the "has('win32')" mess.
2013-12-04 16:50:35 +02:00
LCD 47
c18ad3e5b8 New checker for yacc: bison. 2013-12-02 16:31:45 +02:00
LCD 47
9856b73b3a New checker for lex: flex. 2013-12-02 13:11:32 +02:00
LCD 47
aa63e1d79e Cleanup fo the racket checker. 2013-12-01 19:09:33 +02:00
LCD 47
1ee2930e24 SyntasticCheck accepts multiple arguments. Cache available checkers. 2013-11-30 00:56:10 +02:00
LCD 47
31a882e52e Minor cleanup: qualify case sensitivity. 2013-11-29 10:35:21 +02:00
LCD 47
cf66f35658 Cleanup the limbo checker. 2013-11-25 20:01:21 +02:00
syucream
1319e52925 Add syntax checking plugin for po files of gettext 2013-11-23 03:49:45 +09:00
LCD 047
fcb83a0d43 Merge pull request #876 from jcristovao/master
Bit rot: the registered name for ghc-mod is ghc_mod.
2013-11-21 08:38:05 -08:00
LCD 47
f97ebd2173 Minor cleanup.
Cleanup highlighting initialization.
Document the syntax highlight groups involved.
2013-11-21 18:27:52 +02:00
João Cristóvão
3721d9fca9 Name specified in ghc-mod.vim is ghc_mod, not ghc-mod. 2013-11-21 09:48:29 +00:00
LCD 47
4cc0b119c0 Minor cleanup. 2013-11-19 09:35:16 +02:00
LCD 47
cfe2ac68a4 New command :SyntasticSetLoclist. 2013-11-16 12:49:43 +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
bbd382ba5d Detailed debugging.
New variables: g:syntastic_debug_file, the name of a file where to write
debugging messages, in addition to adding them to the message history.

The old g:syntastic_debug is now a sum of flags:

*  1 - trace checker calls
*  2 - dump loclists
*  4 - trace notifiers
*  8 - trace autocommands
* 16 - dump syntastic variables (not implemented yet)
2013-11-13 10:58:33 +02:00
LCD 47
7c638f6f70 Minor cleanup. 2013-11-11 22:14:05 +02:00
LCD 47
802ccf53ab Fix luac highlighting. 2013-11-11 18:24:36 +02:00
LCD 47
544d616acf Bump version number. 2013-11-11 10:55:12 +02:00
LCD 47
a5b5fb784e Merge branch 'registry_cleanup' 2013-11-11 10:36:20 +02:00
LCD 47
6740608991 Bump version number. 2013-11-08 17:29:33 +02:00
LCD 47
a9e3b52c73 Add default checkers for all filetypes. 2013-11-08 17:28:41 +02:00
LCD 47
8922dc2388 Cleanup related to the HighlightRegex() functions. 2013-11-07 18:27:11 +02:00
LCD 47
1a5bf0118a Cleanup related to the HighlightRegex() functions. 2013-11-07 18:24:10 +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
14cb306414 New option g:syntastic_id_checkers.
Default: 1.  There is also a local version b:syntastic_id_checkers.
2013-11-02 10:39:06 +02:00
LCD 47
c2e1429c4e Reword the message given by SyntasticInfo. 2013-11-01 16:51:50 +02:00
LCD 47
cd1d1a2a55 Cleanup. 2013-11-01 11:51:04 +02:00
LCD 47
e67e5998da Moved initialization of g:syntastic_delayed_redraws to util.vim. 2013-10-30 07:21:46 +02:00
LCD 47
f623d1ea05 Workaround for a Vim crash.
Older versions of Vim can crash if redraw is called while a popup is
visible.  This commit adds a variable g:syntastic_delayed_redraws that
instructs syntastic to move redraws to a CursorHold / CursorHoldI
handler if redraw is called while pumvisible() is true.
2013-10-29 09:09:34 +02:00
LCD 47
022c49371f Check for a minimal set of Vim features at startup. 2013-10-29 01:15:44 +02:00
LCD 47
c87d17444f Make syntastic re-read g:syntastic_mode_map at every check. 2013-10-28 21:53:10 +02:00
LCD 47
8eba8c3a45 Update version string. 2013-10-28 20:29:10 +02:00
LCD 47
c8e173c4ef Make g:syntastic_filetype_map apply to composite filetypes.
Normally composite types are handled by splitting them into simple
components, and applying the corresponding (simple) checkers.  This
behaviour can now be disabled, by mapping composite types to a simple
ones.
2013-10-28 08:20:21 +02:00
LCD 47
95aab2530e Try to avoid fun with magic / nomagic by qualifying regexps. 2013-10-25 15:46:16 +03:00
LCD 47
d238665385 Fix unwanted filter() and map() side effects. Minor cleanup. 2013-10-23 12:59:23 +03:00
LCD 47
d251ca822d Minor cleanup. 2013-09-27 10:35:46 +03:00
LCD 47
ce198e64bd Sanity check for shell redirections (shell=fish won't work). 2013-09-24 21:41:59 +03:00
LCD 47
c404f78e87 Save and restore local errorformat. 2013-09-20 01:04:35 +03:00
LCD 47
500bac5f64 Make 'litcoffee' filetype an alias to 'coffee'. 2013-09-20 01:01:57 +03:00
LCD 47
81e2e20892 Bug fix: split checker output into lines before preprocessing. 2013-08-16 01:31:22 +03:00
LCD 47
e6482164f8 Fix setting title of the error window.
Sadly this is slow.
2013-08-15 21:24:57 +03:00
LCD 47
205dc0b168 Minor bug fix: setting checker names in CacheErrors(). 2013-08-15 20:30:06 +03:00
LCD 47
929f92ddd6 Bug fix: allow loclist cleanup. 2013-08-13 17:48:37 +03:00
LCD 47
148021e348 Reuse loclists when possible, to allow :lolder and :lnewer.
This is not completely safe: if a loclist is created by something
other than syntastic before the error window is displayed, syntastic
will obliterate it.  There is currently no way to tell if a
loclist was created by syntastic or not.  Undocumented variable
g:syntastic_reuse_loc_lists can be used to disable reuse of loclists.
2013-08-13 09:31:43 +03:00
LCD 47
48208d46f8 Merge branch 'master' into preprocess 2013-08-09 15:33:34 +03:00
LCD 47
8901a8262e Add debug logging for syntastic_aggregate_errors. 2013-08-09 15:33:18 +03:00