Minor cleanup.

This commit is contained in:
LCD 47 2014-01-05 08:31:29 +02:00
parent 55941360f3
commit 00e75e1151
3 changed files with 5 additions and 6 deletions

View File

@ -19,7 +19,7 @@ if !exists('g:syntastic_erlc_include_path')
let g:syntastic_erlc_include_path = '' let g:syntastic_erlc_include_path = ''
endif endif
let s:check_file = expand('<sfile>:p:h') . '/erlang_check_file.erl' let s:check_file = expand('<sfile>:p:h') . syntastic#util#Slash() . 'erlang_check_file.erl'
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim

View File

@ -30,15 +30,15 @@ if !exists("g:syntastic_less_use_less_lint")
let g:syntastic_less_use_less_lint = 0 let g:syntastic_less_use_less_lint = 0
endif endif
let s:save_cpo = &cpo
set cpo&vim
if g:syntastic_less_use_less_lint if g:syntastic_less_use_less_lint
let s:check_file = 'node ' . expand('<sfile>:p:h') . '/less-lint.js' let s:check_file = 'node ' . expand('<sfile>:p:h') . syntastic#util#Slash() . 'less-lint.js'
else else
let s:check_file = 'lessc' let s:check_file = 'lessc'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_less_lessc_IsAvailable() dict function! SyntaxCheckers_less_lessc_IsAvailable() dict
return g:syntastic_less_use_less_lint ? executable('node') : executable('lessc') return g:syntastic_less_use_less_lint ? executable('node') : executable('lessc')
endfunction endfunction

View File

@ -33,7 +33,6 @@ endfunction
function! SyntaxCheckers_puppet_puppetlint_GetLocList() dict function! SyntaxCheckers_puppet_puppetlint_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'exe': 'puppet-lint',
\ 'post_args': '--log-format "%{KIND} [%{check}] %{message} at %{fullpath}:%{linenumber}"' }) \ 'post_args': '--log-format "%{KIND} [%{check}] %{message} at %{fullpath}:%{linenumber}"' })
let errorformat = '%t%*[a-zA-Z] %m at %f:%l' let errorformat = '%t%*[a-zA-Z] %m at %f:%l'