home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / compiler / checkstyle.vim < prev    next >
Encoding:
Text File  |  2003-05-11  |  547 b   |  17 lines

  1. " Vim compiler file
  2. " Compiler:    Checkstyle
  3. " Maintainer:    Doug Kearns <djkea2@mugca.its.monash.edu.au>
  4. " URL:        http://mugca.its.monash.edu.au/~djkea2/vim/compiler/checkstyle.vim
  5. " Last Change:    2003 May 11
  6.  
  7. if exists("current_compiler")
  8.   finish
  9. endif
  10. let current_compiler = "checkstyle"
  11.  
  12. setlocal makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain
  13.  
  14. " sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
  15. "        WebTable.java:201:1: '{' should be on the previous line.
  16. setlocal errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%#
  17.