Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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: 2004 Mar 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%.%# |