2014-07-10 21:05:51 -07:00
|
|
|
" Vim compiler file
|
|
|
|
" Compiler: Checkstyle
|
|
|
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
2021-04-29 17:43:22 -07:00
|
|
|
" Last Change: 2020 Aug 2
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
if exists("current_compiler")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let current_compiler = "checkstyle"
|
|
|
|
|
|
|
|
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
|
|
command -nargs=* CompilerSet setlocal <args>
|
|
|
|
endif
|
|
|
|
|
2021-04-29 17:43:22 -07:00
|
|
|
let s:cpo_save = &cpo
|
|
|
|
set cpo&vim
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2021-04-29 17:43:22 -07:00
|
|
|
" CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain\ -c\ /sun_checks.xml
|
|
|
|
" CompilerSet makeprg=java\ -jar\ checkstyle-X.XX-all.jar\ -f\ plain\ -c\ /sun_checks.xml
|
|
|
|
|
|
|
|
CompilerSet makeprg=checkstyle\ -f\ plain
|
|
|
|
CompilerSet errorformat=[%tRROR]\ %f:%l:%v:\ %m,
|
|
|
|
\[%tARN]\ %f:%l:%v:\ %m,
|
|
|
|
\[%tRROR]\ %f:%l:\ %m,
|
|
|
|
\[%tARN]\ %f:%l:\ %m,
|
|
|
|
\%-G%.%#
|
|
|
|
|
|
|
|
let &cpo = s:cpo_save
|
|
|
|
unlet s:cpo_save
|