7
|
1 " Vim compiler file
|
|
2 " Compiler: Checkstyle
|
36
|
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
|
7
|
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%.%#
|