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

Dmitry Dulepov dmitry.dulepov at gmail.com
Mon Sep 21 17:10:40 CEST 2009


Hi!

Fabrizio Branca wrote:
> Of course d oother opionions matter. If you have some concerns please
> tell us!

It would be great if this can be an option, which is enabled by default for all new projects. The reason for the option is that sometimes pseudocode is committed instead of a real code to SVN. SVN is a developer's tool, so he has all rights to use his own workflow. It would not be the best idea to force him to some workflow all the time.

In addition this script does not give 100% guarantie. Simple example: a class implements an interface but not all methods of the interface. There will be a runtime error and the commit hook will not catch such error.

-- 
Dmitry Dulepov
Facebook: http://www.facebook.com/dmitryd
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs




More information about the TYPO3-dev mailing list