Try to get checkstyle running via makeprg.

In OS X, anyway, this isn't working. I suspect an issue with temp file handling
in MacVim but haven't yet found anything definitive.
This commit is contained in:
Thomas Gideon 2015-03-25 11:12:54 -04:00
parent 3939b5eeca
commit 36c552d959

View file

@ -7,3 +7,10 @@ function JavaImpClean()
endfunction endfunction
:command JavaImpClean exec JavaImpClean() :command JavaImpClean exec JavaImpClean()
:nnoremap <F7> :JavaImpClean<CR> :nnoremap <F7> :JavaImpClean<CR>
"let makeprg = 'java -cp /opt/boxen/homebrew/opt/checkstyle/libexec/checkstyle-6.0-all.jar -c '. vimrc_git . '/checkstyle.xml %:p'
let makeprg = 'checkstyle -c '. vimrc_git . '/checkstyle.xml ./%'
autocmd FileType java let &makeprg=escape(makeprg, ' ')
autocmd FileType java set errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%#