[ANNOUNCEMENT] PHP_CodeSniffer-2.0.0 (stable) Released.

[email protected] ("PEAR Announce") Fri, 5 Dec 2014 03:55:51 +0000 (GMT)
Newsgroups php.pear.general
Message-ID <[email protected]>
The new PEAR package PHP_CodeSniffer-2.0.0 (stable) has been released at http://pear.php.net/.

Release notes
-------------
- JS tokenizer now sets functions as T_CLOSUREs if the function is anonymous
- JS tokenizer now sets all objects to T_OBJECT
  -- Object end braces are set to a new token T_CLOSE_OBJECT
  -- T_OBJECT tokens no longer act like scopes; i.e., they have no condition/opener/closer
  -- T_PROPERTY tokens no longer act like scopes; i.e., they have no condition/opener/closer
  -- T_OBJECT tokens have a bracket_closer instead, which can be used to find the ending
  -- T_CLOSE_OBJECT tokens have a bracket_opener
- Improved regular expression detection in the JS tokenizer
- 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
- PHPCBF now prints output when it is changing into directories
- Improved conflict detection during auto fixing
- The -vvv command line argument will now output the current file content for each loop during fixing
- Generic ScopeIndentSniff now checks that open/close PHP tags are aligned to the correct column
- PEAR FunctionCallSignatureSniff now checks indent of closing parenthesis even if it is not on a line by itself
- PEAR FunctionCallSignatureSniff now supports JS files
- PEAR MultiLineConditionSniff now supports JS files
- Squiz DocCommentAlignmentSniff now supports JS files
- Fixed a problem correcting the closing brace line in Squiz ArrayDeclarationSniff
- Fixed a problem auto-fixing the Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeNestedClose error
- Squiz EmbeddedPhpSniff no longer reports incorrect alignment of tags when they are not on new lines
- Squiz EmbeddedPhpSniff now aligns open tags correctly when moving them onto a new line
- Improved fixing of arrays with multiple values in Squiz ArrayDeclarationSniff
- Improved detection of function comments in Squiz FunctionCommentSpacingSniff
- Improved fixing of lines after cases statements in Squiz SwitchDeclarationSniff
- Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
- Fixed bug #320 : Code sniffer identation issue
- Fixed bug #333 : Nested ternary operators causing problems

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/2.0.0
    Download: http://download.pear.php.net/package/PHP_CodeSniffer-2.0.0.tgz

Authors
-------
Greg Sherwood (lead)