1" Vim compiler file 2" Compiler: Checkstyle 3" Maintainer: Doug Kearns <[email protected]> 4" Last Change: 2020 Aug 2 5 6if exists("current_compiler") 7 finish 8endif 9let current_compiler = "checkstyle" 10 11if exists(":CompilerSet") != 2 " older Vim always used :setlocal 12 command -nargs=* CompilerSet setlocal <args> 13endif 14 15let s:cpo_save = &cpo 16set cpo&vim 17 18" CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain\ -c\ /sun_checks.xml 19" CompilerSet makeprg=java\ -jar\ checkstyle-X.XX-all.jar\ -f\ plain\ -c\ /sun_checks.xml 20 21CompilerSet makeprg=checkstyle\ -f\ plain 22CompilerSet errorformat=[%tRROR]\ %f:%l:%v:\ %m, 23 \[%tARN]\ %f:%l:%v:\ %m, 24 \[%tRROR]\ %f:%l:\ %m, 25 \[%tARN]\ %f:%l:\ %m, 26 \%-G%.%# 27 28let &cpo = s:cpo_save 29unlet s:cpo_save 30