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 / runtime / compiler / checkstyle.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  673 b   |  21 lines

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