[ANNOUNCEMENT] PHP_CodeSniffer-3.0.0 (stable) Released.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[ANNOUNCEMENT] PHP_CodeSniffer-3.0.0 (stable) Released.

PEAR Announce
The new PEAR package PHP_CodeSniffer-3.0.0 (stable) has been released at http://pear.php.net/.

Release notes
- Added an --ignore-annotations command line argument to ignore all @codingStandards annotations in code comments (request #811)
  -- This allows you to force errors to be shown that would otherwise be ignored by code comments
  -- Also stop files being able to change sniff properties mid way through processing
- An error is now reported if no sniffs were registered to be run (request #1129)
- The autoloader will now search for files inside the directory of any loaded coding standard
  -- This allows autoloading of any file inside a custom coding standard without manually requiring them
  -- Ensure your namespace begins with your coding standard's directory name and follows PSR-4
  -- e.g., StandardName\Sniffs\CategoryName\AbstractHelper or StandardName\Helpers\StringSniffHelper
- Fixed an error where STDIN was sometimes not checked when using the --parallel CLI option
- The is_closure index has been removed from the return value of File::getMethodProperties()
  -- This value was always false becasue T_FUNCTION tokens are never closures
  -- Closures have a token type of T_CLOSURE
- The File::isAnonymousFunction() method has been removed
  -- This function always returned false because it only accepted T_FUNCTION tokens, which are never closures
  -- Closures have a token type of T_CLOSURE
- Includes all changes from the 2.9.0 release
- Fixed bug #834 : PSR2.ControlStructures.SwitchDeclaration does not handle if branches with returns
  -- Thanks to Fabian Wiget for the patch

Package Info
PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.

Related Links
Package home: http://pear.php.net/package/PHP_CodeSniffer
   Changelog: http://pear.php.net/package/PHP_CodeSniffer/download/3.0.0
    Download: http://download.pear.php.net/package/PHP_CodeSniffer-3.0.0.tgz

Greg Sherwood (lead)

PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php