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 7if exists("current_compiler") 8 finish 9endif 10let current_compiler = "checkstyle" 11 12if exists(":CompilerSet") != 2 " older Vim always used :setlocal 13 command -nargs=* CompilerSet setlocal <args> 14endif 15 16CompilerSet 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. 20CompilerSet errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%# 21