[ANNOUNCEMENT] PHP_CodeSniffer-1.5.6 (stable) Released.
[email protected] ("PEAR Announce") Thu, 4 Dec 2014 23:44:07 +0000 (GMT)
| Newsgroups | php.pear.general |
|---|---|
| Message-ID | <[email protected]> |
The new PEAR package PHP_CodeSniffer-1.5.6 (stable) has been released at http://pear.php.net/.
Release notes
-------------
- JS tokenizer now detects xor statements correctly
- The --config-show command now pretty-prints the config values
-- Thanks to Ken Guest for the patch
- Setting and removing config values now catches exceptions if the config file is not writable
-- Thanks to Ken Guest for the patch
- Setting and removing config values now prints a message to confirm the action and show old values
- You can now get PHP_CodeSniffer to ignore a single line by putting @codingStandardsIgnoreLine in a comment
-- When the comment is found, the comment line and the following line will be ignored
-- Thanks to Andy Bulford for the contribution
- Generic ConstructorNameSniff no longer errors for PHP4 style constructors when __construct() is present
-- Thanks to Thibaud Fabre for the patch
- Fixed bug #280 : The --config-show option generates error when there is no config file
- Fixed bug #306 : File containing only a namespace declaration raises undefined index notice
- Fixed bug #308 : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
- Fixed bug #310 : Variadics not recognized by tokenizer
- Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
Package Info
------------
PHP_CodeSniffer is a PHP5 script that tokenises PHP, JavaScript and CSS files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.
Related Links
-------------
Package home: http://pear.php.net/package/PHP_CodeSniffer
Changelog: http://pear.php.net/package/PHP_CodeSniffer/download/1.5.6
Download: http://download.pear.php.net/package/PHP_CodeSniffer-1.5.6.tgz
Authors
-------
Greg Sherwood (lead)