Monday, 21. July 2008
Version 1.1.0 of PHP_CodeSniffer Announced
On his
blog lately, Greg Sherwood has announced the 1.1.0 stable release of
PHP_CodeSniffer. PHP_CodeSniffer is a PHP5 script that tokenizes and sniffs PHP and JavaScript code to detect violations of a defined coding standard.
“One of the major additions in this release is the ability to use PHP_CodeSniffer within an
SVN pre-commit hook. This allows code that violates your coding standard to be blocked from your code repository,” writes Sherwood.
Few other enhancements included in this version are added Generic DisallowMultipleStatementsSniff to ensure there is only one statement per line, error fixed in Zend ValidVariableNameSniff when checking vars in form: ->{}, and PEAR FileCommentSniff now allows tag orders to be overridden in child classes, among others.
Related Links
http://pear.php.net/package/PHP_CodeSniffer/download/1.1.0/