[TYPO3-dev] SVN pre-commit hooks to avoid commiting php files with syntax errors

Martin Kutschker masi-no at spam-typo3.org
Mon Sep 21 10:14:49 CEST 2009


Fabrizio Branca schrieb:
> Hi there,
> 
> today I played around with subversion's pre-commit hook. Checking php
> syntax errors with php lint (which uses php's original parser) can be
> used to avoid php files with syntax errors to be committed. Your client
> will show a detailed custom error message why this submit was not accepted.
> 
> I tried this on my subversion server and it worked fine. Of course this
> is only "poor man's continuous integration server", but still extremely
> useful.
> 
> As I got some feedback, that this should/could go into forge I'd to post
> this here. I think this would be a great idea!

Sounds interesting.

Masi




More information about the TYPO3-dev mailing list