News Archive
PhpRiot Newsletter
Your Email Address:

More information

Creating coding standards for PHP_CodeSniffer

Note: This article was originally published at Planet PHP on 25 February 2011.
Planet PHP
When our project is supervised by a continous integration platform, we are (hopefully) using static code analysis tools. One of the best for analysing PHP code is PHP_CodeSniffer which integrates fine into systems like PhpUnderControl, Hudson or Bamboo. But in some cases the pre-installed coding standards like PEAR or Zend might not be sufficient for our current project or we want to deviate. This is the moment when we want to be able to create a custom one that fits our special needs. In this article I want to share my first experiences with you about how to create a custom coding standard for PHP_CodeSniffer.
Continue reading "Creating coding standards for PHP_CodeSniffer"