vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Running syntastic headless with output in gcc/junit format #1107

Closed lpenz closed 10 years ago

lpenz commented 10 years ago

Hi

Firt, congratulations, syntastic is a great tool that does an excellent job joining static checkers and the like and integrating them in vim!

Has anyone ever thought about calling it in a headless setup? We could then use the static checker modeling infrastructure to export data in a standard format and use it elsewhere. I'm thinking specifically about exporting it in junit format and using it in Jenkins or another CI tool.

I don't want to extract it from vim or anything like it, I want to run vim with it and have it output the results, like @ofavre 's https://github.com/ofavre/vimcat does, or like http://vim.wikia.com/wiki/Vim_as_a_system_interpreter_for_vimscript describes.

Cheers

lcd047 commented 10 years ago

It's possible, and even relatively straightforward (albeit with a distinctive Brainfuck-like quality to it), using the same mechanisms as the tests in Vim's sources. However, I fail to see the point of such an approach. Syntastic doesn't do any checks by itself, it just delegates the work to third party programs, parses their results, and shows you said results in a window. The main point of syntastic is to be interactive. If you only care about parsing compiler results you don't need the brain-dead errorformat in Vim, and much less the rest of syntastic; you need Perl. shrug

lpenz commented 10 years ago

I agree that, starting from scratch, a real programming language is the way to go. The idea I have, though, is taking advantage of the adaptations already done in syntastic now and in the future, so that I don't have to keep adding checkers as syntastic does - I just take them and use them.

Thanks for the clarification, I'll look into it.

I'm closing the issue, as it was more of a doubt than an issue with syntastic itself.