blob: eac461bb2d6cd9b4685600192e8cb47c43bf69f9 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim compiler file
2" Compiler: Checkstyle
Bram Moolenaardd007ed2013-07-09 15:44:17 +02003" Maintainer: Doug Kearns <dougkearns@gmail.com>
4" Last Change: 2013 Jun 26
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6if exists("current_compiler")
7 finish
8endif
9let current_compiler = "checkstyle"
10
11if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12 command -nargs=* CompilerSet setlocal <args>
13endif
14
15CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain
16
17" sample error: WebTable.java:282: '+=' is not preceeded with whitespace.
18" WebTable.java:201:1: '{' should be on the previous line.
Bram Moolenaardd007ed2013-07-09 15:44:17 +020019CompilerSet errorformat=%f:%l:%v:\ %m,%f:%l:\ %m,%-G%.%#