From fd5fb851dab4d206de61bab16f0a9e1badf7ce29 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 13 Feb 2014 07:50:01 +0200 Subject: [PATCH] Minor cleanup. --- plugin/syntastic.vim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index aa003e30..877d8d8d 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -300,6 +300,7 @@ function! s:CacheErrors(checkers) call syntastic#log#debugShowOptions(g:SyntasticDebugTrace, s:debug_dump_options) call syntastic#log#debugDump(g:SyntasticDebugVariables) call syntastic#log#debugShowVariables(g:SyntasticDebugTrace, 'syntastic_aggregate_errors') + call syntastic#log#debug(g:SyntasticDebugTrace, 'getcwd() = ' . getcwd()) let filetypes = s:ResolveFiletypes() let aggregate_errors = syntastic#util#var('aggregate_errors') @@ -310,7 +311,7 @@ function! s:CacheErrors(checkers) for checker in clist let active_checkers += 1 - call syntastic#log#debug(g:SyntasticDebugTrace, "CacheErrors: Invoking checker: " . checker.getName()) + call syntastic#log#debug(g:SyntasticDebugTrace, 'CacheErrors: Invoking checker: ' . checker.getName()) let loclist = checker.getLocList() @@ -352,11 +353,11 @@ function! s:CacheErrors(checkers) endif endif - call syntastic#log#debug(g:SyntasticDebugLoclist, "aggregated:", newLoclist) + call syntastic#log#debug(g:SyntasticDebugLoclist, 'aggregated:', newLoclist) if type(g:syntastic_quiet_messages) == type({}) && !empty(g:syntastic_quiet_messages) call newLoclist.quietMessages(g:syntastic_quiet_messages) - call syntastic#log#debug(g:SyntasticDebugLoclist, "filtered by g:syntastic_quiet_messages:", newLoclist) + call syntastic#log#debug(g:SyntasticDebugLoclist, 'filtered by g:syntastic_quiet_messages:', newLoclist) endif endif @@ -466,11 +467,11 @@ function! SyntasticMake(options) let $LC_ALL = old_lc_all let $LC_MESSAGES = old_lc_messages - call syntastic#log#debug(g:SyntasticDebugLoclist, "checker output:", err_lines) + call syntastic#log#debug(g:SyntasticDebugLoclist, 'checker output:', err_lines) if has_key(a:options, 'preprocess') let err_lines = call(a:options['preprocess'], [err_lines]) - call syntastic#log#debug(g:SyntasticDebugLoclist, "preprocess:", err_lines) + call syntastic#log#debug(g:SyntasticDebugLoclist, 'preprocess:', err_lines) endif lgetexpr err_lines @@ -490,7 +491,7 @@ function! SyntasticMake(options) call syntastic#util#redraw(g:syntastic_full_redraws) endif - call syntastic#log#debug(g:SyntasticDebugLoclist, "raw loclist:", errors) + call syntastic#log#debug(g:SyntasticDebugLoclist, 'raw loclist:', errors) if has_key(a:options, 'returns') && index(a:options['returns'], v:shell_error) == -1 throw 'Syntastic: checker error' @@ -509,7 +510,7 @@ function! SyntasticMake(options) for rule in a:options['postprocess'] let errors = call('syntastic#postprocess#' . rule, [errors]) endfor - call syntastic#log#debug(g:SyntasticDebugLoclist, "postprocess:", errors) + call syntastic#log#debug(g:SyntasticDebugLoclist, 'postprocess:', errors) endif return errors