[ANNOUNCEMENT] PHP_CodeSniffer-1.3.5 (stable) Released.
| From: | PEAR Announce | Date: | Thu, 12 Jul 2012 06:26:07 +0000 |
| Subject: | [ANNOUNCEMENT] PHP_CodeSniffer-1.3.5 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31593@lists.php.net to get a copy of this message | ||
The new PEAR package PHP_CodeSniffer-1.3.5 (stable) has been released at http://pear.php.net/.
Release notes
-------------
- Added Generic CamelCapsFunctionNameSniff to just check if function and method names use camel caps
-- Does not allow underscore prefixes for private/protected methods
-- Defaults to strict checking, where two uppercase characters can not be next to each other
-- Strict checking can be disabled in a ruleset.xml file
- Squiz FunctionDeclarationArgumentSpacing now has a setting to specify how many spaces should
surround equals signs
-- Default remains at 0
-- Override the equalsSpacing setting in a ruleset.xml file to change
- Squiz ClassDeclarationSniff now throws errors for > 1 space before extends/implements class
name with ns seperator
- Squiz standard now warns about deprecated functions using Generic DeprecatedFunctionsSniff
- PEAR FunctionDeclarationSniff now reports an error for multiple spaces after the FUNCTION keyword
and around USE
- PEAR FunctionDeclarationSniff now supports closures
- Squiz MultiLineFunctionDeclarationSniff now supports closures
- Exclude rules written for Unix systems will now work correctly on Windows
-- Thanks to Walter Tamboer for the patch
- The PHP tokenizer now recognises T_RETURN as a valid closer for T_CASE and T_DEFAULT inside switch
statements
- Fixed duplicate message codes in Generic OpeningFunctionBraceKernighanRitchieSniff
- Fixed bug #18651 : PHPunit Test cases for custom standards are not working on Windows
- Fixed bug #19416 : Shorthand arrays cause bracket spacing errors
- Fixed bug #19421 : phpcs doesn't recognize ${x} as equivalent to $x
- Fixed bug #19428 : PHPCS Report "hgblame" doesn't support windows paths
-- Thanks to Justin Rovang for the patch
- Fixed bug #19448 : Problem with detecting remote standards
- Fixed bug #19463 : Anonymous functions incorrectly being flagged by NonExecutableCodeSniff
- Fixed bug #19469 : PHP_CodeSniffer_File::getMemberProperties() sets wrong scope
- Fixed bug #19471 : phpcs on Windows, when using Zend standard, doesn't catch problems
-- Thanks to Ivan Habunek for the patch
- Fixed bug #19478 : Incorrect indent detection in PEAR standard
-- Thanks to Shane Auckland for the patch
- Fixed bug #19483 : Blame Reports fail with space in directory name
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.3.5
Download: http://download.pear.php.net/package/PHP_CodeSniffer-1.3.5.tgz
Authors
-------
Greg Sherwood (lead)