Checkstyle checker: cleanup.
This commit is contained in:
parent
2a88120b33
commit
fe6003c3be
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:syntastic_start
|
lockvar! g:syntastic_start
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:syntastic_version = '3.5.0-33'
|
let g:syntastic_version = '3.5.0-34'
|
||||||
lockvar g:syntastic_version
|
lockvar g:syntastic_version
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -27,19 +27,27 @@ endif
|
|||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
function! SyntaxCheckers_java_checkstyle_IsAvailable() dict
|
||||||
|
return
|
||||||
|
\ executable(self.getExec()) &&
|
||||||
|
\ filereadable(expand(g:syntastic_java_checkstyle_classpath)) &&
|
||||||
|
\ filereadable(expand(g:syntastic_java_checkstyle_conf_file))
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_java_checkstyle_GetLocList() dict
|
function! SyntaxCheckers_java_checkstyle_GetLocList() dict
|
||||||
|
|
||||||
let fname = syntastic#util#shescape( expand('%:p:h') . '/' . expand('%:t') )
|
let fname = syntastic#util#shescape( expand('%:p:h') . syntastic#util#Slash() . expand('%:t') )
|
||||||
|
|
||||||
if has('win32unix')
|
if has('win32unix')
|
||||||
let fname = substitute(system('cygpath -m ' . fname), '\m\%x00', '', 'g')
|
let fname = substitute(system('cygpath -m ' . fname), '\m\%x00', '', 'g')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ 'args_after': '-cp ' . g:syntastic_java_checkstyle_classpath .
|
\ 'args_after': [
|
||||||
\ ' com.puppycrawl.tools.checkstyle.Main -c ' .
|
\ '-cp', expand(g:syntastic_java_checkstyle_classpath),
|
||||||
\ syntastic#util#shexpand(g:syntastic_java_checkstyle_conf_file) .
|
\ 'com.puppycrawl.tools.checkstyle.Main',
|
||||||
\ ' -f xml',
|
\ '-c', expand(g:syntastic_java_checkstyle_conf_file),
|
||||||
|
\ '-f', 'xml'],
|
||||||
\ 'fname': fname })
|
\ 'fname': fname })
|
||||||
|
|
||||||
let errorformat = '%f:%t:%l:%c:%m'
|
let errorformat = '%f:%t:%l:%c:%m'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user