Developer pages: Coding Guidelines
Tools
Checking of adherence to coding guidelines
The Phing build file of Stubbles contains a target check-style which allows to check if code adheres to this coding guidelines. The check relies on PHP CodeSniffer with our own Sniffs. The Stubbles Sniffs need to be installed as separate PEAR package:
pear channel-discover pear.php-tools.net pear install pat/StubblesCodingStandard-alpha
Pre-commit hook
Please note that there is no pre-commit hook on our repository which check the coding style if committed files. We trust our developers to follow these rules. However this may change if too much code not following this coding guidelines will be committed.
