vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

checkstyle.vim (671B)


      1 " Vim compiler file
      2 " Compiler:	Checkstyle
      3 " Maintainer:	Doug Kearns <dougkearns@gmail.com>
      4 " Last Change:	2024 Apr 03
      5 
      6 if exists("current_compiler")
      7   finish
      8 endif
      9 let current_compiler = "checkstyle"
     10 
     11 let s:cpo_save = &cpo
     12 set cpo&vim
     13 
     14 " CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain\ -c\ /sun_checks.xml
     15 " CompilerSet makeprg=java\ -jar\ checkstyle-X.XX-all.jar\ -f\ plain\ -c\ /sun_checks.xml
     16 
     17 CompilerSet makeprg=checkstyle\ -f\ plain
     18 CompilerSet errorformat=[%tRROR]\ %f:%l:%v:\ %m,
     19 		       \[%tARN]\ %f:%l:%v:\ %m,
     20 		       \[%tRROR]\ %f:%l:\ %m,
     21 		       \[%tARN]\ %f:%l:\ %m,
     22 		       \%-G%.%#
     23 
     24 let &cpo = s:cpo_save
     25 unlet s:cpo_save