Fedora 21 Update: php-pear-PHP-CodeSniffer-2.1.0-1.fc21

updates at fedoraproject.org updates at fedoraproject.org
Mon Dec 29 09:55:32 UTC 2014


--------------------------------------------------------------------------------
Fedora Update Notification
FEDORA-2014-17321
2014-12-20 07:13:33
--------------------------------------------------------------------------------

Name        : php-pear-PHP-CodeSniffer
Product     : Fedora 21
Version     : 2.1.0
Release     : 1.fc21
URL         : http://pear.php.net/package/PHP_CodeSniffer
Summary     : PHP coding standards enforcement tool
Description :
PHP_CodeSniffer provides functionality to verify that code conforms to
certain standards, such as PEAR, or user-defined.

--------------------------------------------------------------------------------
Update Information:

Upstream Changelog:\r\n- Time and memory output is now shown if progress information is also shown (request #335)\r\n- A tilde can now be used to reference a user's home directory in a path to a standard (request #353)\r\n- Added PHP_CodeSniffer_File::findStartOfStatement() to find the first non-whitespace token in a statement\r\n-- Possible alternative for code using PHP_CodeSniffer_File::findPrevious() with the local flag set\r\n- Added PHP_CodeSniffer_File::findEndOfStatement() to find the last non-whitespace token in a statement\r\n-- Possible alternative for code using PHP_CodeSniffer_File::findNext() with the local flag set\r\n- Generic opening function brace sniff now ensure the opening brace is the last content on the line\r\n-- Affects OpeningFunctionBraceBsdAllmanSniff and OpeningFunctionBraceKernighanRitchieSniff\r\n-- Also enforced in PEAR FunctionDeclarationSniff and Squiz MultiLineFunctionDeclarationSniff\r\n- Generic DisallowTabIndentSniff now replaces tabs everywhere it finds them, except in strings and here/now docs\r\n- Generic EmptyStatementSniff error codes now contain the type of empty statement detected (request #314)\r\n-- All messages generated by this sniff are now errors (empty CATCH was previously a warning)\r\n-- Message code Generic.CodeAnalysis.EmptyStatement.NotAllowed has been removed\r\n-- Message code Generic.CodeAnalysis.EmptyStatement.NotAllowedWarning has been removed\r\n-- New message codes have the format Generic.CodeAnalysis.EmptyStatement.Detected[TYPE]\r\n-- Example code is Generic.CodeAnalysis.EmptyStatement.DetectedCATCH\r\n-- You can now use a custom ruleset to change messages to warnings and to exclude them\r\n- PEAR and Squiz FunctionCommentSniffs no longer ban @return tags for constructors and destructors\r\n-- Removed message PEAR.Commenting.FunctionComment.ReturnNotRequired\r\n-- Removed message Squiz.Commenting.FunctionComment.ReturnNotRequired\r\n-- Change initiated by request #324 and request #369\r\n- Squiz EmptyStatementSniff has been removed\r\n-- Squiz standard now includes Generic EmptyStatementSniff and turns off the empty CATCH error\r\n- Squiz ControlSignatureSniff fixes now retain comments between the closing parenthesis and open brace\r\n- Squiz SuperfluousWhitespaceSniff now checks for extra blank lines inside closures\r\n-- Thanks to Sertan Danis for the patch\r\n- Squiz ArrayDeclarationSniff now skips function calls while checking multi-line arrays\r\n- Fixed bug #337 : False positive with anonymous functions in Generic_Sniffs_WhiteSpace_ScopeIndentSniff\r\n- Fixed bug #339 : reformatting brace location can result in broken code\r\n- Fixed bug #342 : Nested ternary operators not tokenized correctly\r\n- Fixed bug #345 : Javascript regex not tokenized when inside array\r\n- Fixed bug #346 : PHP path can't be determined in some cases in "phpcs.bat" (on Windows XP)\r\n- Fixed bug #358 : False positives for Generic_Sniffs_WhiteSpace_ScopeIndentSniff\r\n- Fixed bug #361 : Sniff-specific exclude patterns don't work for Windows\r\n- Fixed bug #364 : Don't interpret "use function" as declaration\r\n- Fixed bug #366 : phpcbf with PSR2 errors on control structure alternative syntax\r\n- Fixed bug #367 : Nested Anonymous Functions Causing False Negative\r\n- Fixed bug #371 : Shorthand binary cast causes tokenizer errors\r\n-- New token T_BINARY_CAST added for the b"string" cast format (the 'b' is the T_BINARY_CAST token)\r\n- Fixed bug #372 : phpcbf parse problem, wrong brace placement for inline IF\r\n- Fixed bug #373 : Double quote usage fix removing too many double quotes\r\n- Fixed bug #20196 : 1.5.2 breaks scope_closer position\r\n
--------------------------------------------------------------------------------
ChangeLog:

* Thu Dec 18 2014 Remi Collet <remi at fedoraproject.org> - 2.1.0-1
- Update to 2.1.0 (stable)
* Fri Dec  5 2014 Remi Collet <remi at fedoraproject.org> - 2.0.0-1
- Update to 2.0.0
- add phpcbf and phpcs-svn-pre-commit commands
--------------------------------------------------------------------------------

This update can be installed with the "yum" update program.  Use
su -c 'yum update php-pear-PHP-CodeSniffer' at the command line.
For more information, refer to "Managing Software with yum",
available at http://docs.fedoraproject.org/yum/.

All packages are signed with the Fedora Project GPG key.  More details on the
GPG keys used by the Fedora Project can be found at
https://fedoraproject.org/keys
--------------------------------------------------------------------------------


More information about the package-announce mailing list