[ANNOUNCEMENT] PHP_CodeSniffer-2.3.4 (stable) Released.
| From: | PEAR Announce | Date: | Wed, 09 Sep 2015 00:41:46 +0000 |
| Subject: | [ANNOUNCEMENT] PHP_CodeSniffer-2.3.4 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-32056@lists.php.net to get a copy of this message | ||
The new PEAR package PHP_CodeSniffer-2.3.4 (stable) has been released at http://pear.php.net/.
Release notes
-------------
- JSON report format now includes the fixable status for each error message and the total number of
fixable errors
- Added more guard code for function declarations with syntax errors
- Added tokenizer support for the PHP declare construct
-- Thanks to Andy Blyler for the patch
- Generic UnnecessaryStringConcatSniff can now allow strings concatenated over multiple lines
-- Set the allowMultiline property to TRUE (default is FALSE) in your ruleset.xml file to enable
this
-- By default, concat used only for getting around line length limits still generates an error
-- Thanks to Stefan Lenselink for the contribution
- Invalid byte sequences no longer throw iconv_strlen() errors (request #639)
-- Thanks to Willem Stuursma for the patch
- Generic TodoSniff and FixmeSniff are now better at processing strings with invalid characters
- PEAR FunctionCallSignatureSniff now ignores indentation of inline HTML content
- Squiz ControlSignatureSniff now supports control structures with only inline HTML content
- Fixed bug #636 : Some class names cause CSS tokenizer to hang
- Fixed bug #638 : VCS blame reports output error content from the blame commands for files not
under VC
- Fixed bug #642 : Method params incorrectly detected when default value uses short array syntax
-- Thanks to Josh Davis for the patch
- Fixed bug #644 : PEAR ScopeClosingBrace sniff does not work with mixed HTML/PHP
- Fixed bug #645 : FunctionSignature and ScopeIndent sniffs don't detect indents correctly when
PHP open tag is not on a line by itself
- Fixed bug #648 : Namespace not tokenized correctly when followed by multiple use statements
- Fixed bug #654 : Comments affect indent check for BSDAllman brace style
- Fixed bug #658 : Squiz.Functions.FunctionDeclarationSpacing error for multi-line declarations with
required spaces greater than zero
-- Thanks to J.D. Grimes for the patch
- Fixed bug #663 : No space after class name generates: Class name "" is not in camel caps
format
- Fixed bug #667 : Scope indent check can go into infinite loop due to some parse errors
- Fixed bug #670 : Endless loop in PSR1 SideEffects sniffer if no semicolon after last statement
-- Thanks to Thomas Jarosch for the patch
- Fixed bug #672 : Call-time pass-by-reference false positive
- Fixed bug #683 : Comments are incorrectly reported by PSR2.ControlStructures.SwitchDeclaration
sniff
- Fixed bug #687 : ScopeIndent does not check indent correctly for method prefixes like public and
abstract
- Fixed bug #689 : False error on some comments after class closing brace
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.3.4
Download: http://download.pear.php.net/package/PHP_CodeSniffer-2.3.4.tgz
Authors
-------
Greg Sherwood (lead)