checkstyle.vim 671 B

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