[ANNOUNCEMENT] PHP_CodeSniffer-2.9.0 (stable) Released.

From: Date: Wed, 03 May 2017 23:45:37 +0000
Subject: [ANNOUNCEMENT] PHP_CodeSniffer-2.9.0 (stable) Released.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-32224@lists.php.net to get a copy of this message
The new PEAR package PHP_CodeSniffer-2.9.0 (stable) has been released at http://pear.php.net/. Release notes ------------- - Added Generic.Debug.ESLint sniff to run ESLint over JS files and report errors -- Set eslint path using: phpcs --config-set eslint_path /path/to/eslint -- Thanks to Ryan McCue for the contribution - T_POW is now properly considered an arithmetic operator, and will be checked as such -- Thanks to Juliette Reinders Folmer for the patch - T_SPACESHIP and T_COALESCE are now properly considered comparison operators, and will be checked as such -- Thanks to Juliette Reinders Folmer for the patch - Generic.PHP.DisallowShortOpenTag now warns about possible short open tags even when short_open_tag is set to OFF -- Thanks to Juliette Reinders Folmer for the patch - Generic.WhiteSpace.DisallowTabIndent now finds and fixes inproper use of spaces anywhere inside the line indent -- Previously, only the first part of the indent was used to determine the indent type -- Thanks to Juliette Reinders Folmer for the patch - PEAR.Commenting.ClassComment now supports checking of traits as well as classes and interfaces -- Thanks to Juliette Reinders Folmer for the patch - Squiz.Commenting.FunctionCommentThrowTag now supports re-throwing exceptions (request #946) -- Thanks to Samuel Levy for the patch - Squiz.PHP.DisallowMultipleAssignments now ignores PHP4-style member var assignments -- Thanks to Juliette Reinders Folmer for the patch - Squiz.WhiteSpace.FunctionSpacing now ignores spacing above functions when they are preceded by inline comments -- Stops conflicts between this sniff and comment spacing sniffs - Squiz.WhiteSpace.OperatorSpacing no longer checks the equal sign in declare statements -- Thanks to Juliette Reinders Folmer for the patch - Added missing error codes for a couple of sniffs so they can now be customised as normal - Fixed bug #1266 : PEAR.WhiteSpace.ScopeClosingBrace can throw an error while fixing mixed PHP/HTML - Fixed bug #1364 : Yield From values are not recognised as returned values in Squiz FunctionComment sniff - Fixed bug #1373 : Error in tab expansion results in white-space of incorrect size -- Thanks to Mark Clements for the patch - Fixed bug #1381 : Tokenizer: derefencing incorrectly identified as short array - Fixed bug #1387 : Squiz.ControlStructures.ControlSignature does not handle alt syntax when checking space after closing brace - Fixed bug #1392 : Scope indent calculated incorrectly when using array destructuring - Fixed bug #1394 : integer type hints appearing as TypeHintMissing instead of ScalarTypeHintMissing -- PHP 7 type hints were also being shown when run under PHP 5 in some cases - Fixed bug #1405 : Squiz.WhiteSpace.ScopeClosingBrace fails to fix closing brace within indented PHP tags - Fixed bug #1421 : Ternaries used in constant scalar expression for param default misidentified by tokenizer - Fixed bug #1431 : PHPCBF can't fix short open tags when they are not followed by a space -- Thanks to Gonçalo Queirós for the patch - Fixed bug #1432 : PHPCBF can make invalid fixes to inline JS control structures that make use of JS objects 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/2.9.0 Download: http://download.pear.php.net/package/PHP_CodeSniffer-2.9.0.tgz Authors ------- Greg Sherwood (lead)

« previous php.pear.general (#32224) next »