@@ -3902,53 +3902,77 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
39023902 - PHP and JS functions and closures are now treated the same way
39033903- Squiz MultiLineFunctionDeclarationSniff now supports JS files
39043904- Interactive mode no longer breaks if you also specify a report type on the command line
3905- - PEAR InlineCommentSniff now fixes the Perl-style comments that it finds (request #375)
3905+ - PEAR InlineCommentSniff now fixes the Perl-style comments that it finds (request [ #375] )
39063906- PSR2 standard no longer fixes the placement of docblock open tags as comments are excluded from this standard
39073907- PSR2 standard now sets a default tab width of 4 spaces
3908- - Generic DocCommentSniff now only disallows lowercase letters at the start of a long/short comment (request #377)
3908+ - Generic DocCommentSniff now only disallows lowercase letters at the start of a long/short comment (request [ #377] )
39093909 - All non-letter characters are now allowed, including markdown special characters and numbers
3910- - Generic DisallowMultipleStatementsSniff now allows multiple open/close tags on the same line (request #423)
3911- - Generic CharacterBeforePHPOpeningTagSniff now only checks the first PHP tag it finds (request #423)
3912- - Generic CharacterBeforePHPOpeningTagSniff now allows a shebang line at the start of the file (request #20481)
3913- - Generic InlineHTMLUnitTest now allows a shebang line at the start of the file (request #20481)
3910+ - Generic DisallowMultipleStatementsSniff now allows multiple open/close tags on the same line (request [ #423] )
3911+ - Generic CharacterBeforePHPOpeningTagSniff now only checks the first PHP tag it finds (request [ #423] )
3912+ - Generic CharacterBeforePHPOpeningTagSniff now allows a shebang line at the start of the file (request [ #20481] )
3913+ - Generic InlineHTMLUnitTest now allows a shebang line at the start of the file (request [ #20481] )
39143914- PEAR ObjectOperatorIndentSniff now only checks object operators at the start of a line
39153915- PEAR FileComment and ClassComment sniffs no longer have @ in their error codes
39163916 - E.g., PEAR.Commenting.FileComment.Missing@categoryTag becomes PEAR.Commenting.FileComment.MissingCategoryTag
39173917 - Thanks to [Grzegorz Rygielski][@grzr] for the patch
39183918- Squiz ControlStructureSpacingSniff no longer enforces a blank line before CATCH statements
3919- - Squiz FunctionCommentSniff now fixes the return type in the @return tag (request #392)
3919+ - Squiz FunctionCommentSniff now fixes the return type in the @return tag (request [ #392] )
39203920- Squiz BlockCommentSniff now only disallows lowercase letters at the start of the comment
39213921- Squiz InlineCommentSniff now only disallows lowercase letters at the start of the comment
3922- - Squiz OperatorSpacingSniff now has a setting to ignore newline characters around operators (request #348)
3922+ - Squiz OperatorSpacingSniff now has a setting to ignore newline characters around operators (request [ #348] )
39233923 - Default remains FALSE, so newlines are not allowed
39243924 - Override the "ignoreNewlines" setting in a ruleset.xml file to change
39253925- PSR2 ControlStructureSpacingSniff now checks for, and fixes, newlines after the opening parenthesis
39263926- Added a markdown document generator (--generator=markdown to use)
39273927 - Thanks to [Stefano Kowalke][@Konafets] for the contribution
39283928
39293929### Fixed
3930- - Fixed bug #379 : Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast incorrectly detects comments
3931- - Fixed bug #382 : JS tokenizer incorrect for inline conditionally created immediately invoked anon function
3932- - Fixed bug #383 : Squiz.Arrays.ArrayDeclaration.ValueNoNewline incorrectly detects nested arrays
3933- - Fixed bug #386 : Undefined offset in Squiz.FunctionComment sniff when param has no comment
3934- - Fixed bug #390 : Indentation of non-control structures isn't adjusted when containing structure is fixed
3935- - Fixed bug #400 : InlineControlStructureSniff fails to fix when statement has no semicolon
3936- - Fixed bug #401 : PHPCBF no-patch option shows an error when there are no fixable violations in a file
3937- - Fixed bug #405 : The "Squiz.WhiteSpace.FunctionSpacing" sniff removes class "}" during fixing
3938- - Fixed bug #407 : PEAR.ControlStructures.MultiLineCondition doesn't account for comments at the end of lines
3939- - Fixed bug #410 : The "Squiz.WhiteSpace.MemberVarSpacing" not respecting "var"
3940- - Fixed bug #411 : Generic.WhiteSpace.ScopeIndent.Incorrect - false positive with multiple arrays in argument list
3941- - Fixed bug #412 : PSR2 multi-line detection doesn't work for inline IF and string concats
3942- - Fixed bug #414 : Squiz.WhiteSpace.MemberVarSpacing - inconsistent checking of member vars with comment
3943- - Fixed bug #433 : Wrong detection of Squiz.Arrays.ArrayDeclaration.KeyNotAligned when key contains space
3944- - Fixed bug #434 : False positive for spacing around "=>" in inline array within foreach
3945- - Fixed bug #452 : Ruleset exclude-pattern for specific sniff code ignored when using CLI --ignore option
3946- - Fixed bug #20482 : Scope indent sniff can get into infinite loop when processing a parse error
3930+ - Fixed bug [#379] : Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast incorrectly detects comments
3931+ - Fixed bug [#382] : JS tokenizer incorrect for inline conditionally created immediately invoked anon function
3932+ - Fixed bug [#383] : Squiz.Arrays.ArrayDeclaration.ValueNoNewline incorrectly detects nested arrays
3933+ - Fixed bug [#386] : Undefined offset in Squiz.FunctionComment sniff when param has no comment
3934+ - Fixed bug [#390] : Indentation of non-control structures isn't adjusted when containing structure is fixed
3935+ - Fixed bug [#400] : InlineControlStructureSniff fails to fix when statement has no semicolon
3936+ - Fixed bug [#401] : PHPCBF no-patch option shows an error when there are no fixable violations in a file
3937+ - Fixed bug [#405] : The "Squiz.WhiteSpace.FunctionSpacing" sniff removes class "}" during fixing
3938+ - Fixed bug [#407] : PEAR.ControlStructures.MultiLineCondition doesn't account for comments at the end of lines
3939+ - Fixed bug [#410] : The "Squiz.WhiteSpace.MemberVarSpacing" not respecting "var"
3940+ - Fixed bug [#411] : Generic.WhiteSpace.ScopeIndent.Incorrect - false positive with multiple arrays in argument list
3941+ - Fixed bug [#412] : PSR2 multi-line detection doesn't work for inline IF and string concats
3942+ - Fixed bug [#414] : Squiz.WhiteSpace.MemberVarSpacing - inconsistent checking of member vars with comment
3943+ - Fixed bug [#433] : Wrong detection of Squiz.Arrays.ArrayDeclaration.KeyNotAligned when key contains space
3944+ - Fixed bug [#434] : False positive for spacing around "=>" in inline array within foreach
3945+ - Fixed bug [#452] : Ruleset exclude-pattern for specific sniff code ignored when using CLI --ignore option
3946+ - Fixed bug [#20482] : Scope indent sniff can get into infinite loop when processing a parse error
3947+
3948+ [#348]: https://github.com/squizlabs/PHP_CodeSniffer/issues/348
3949+ [#375]: https://github.com/squizlabs/PHP_CodeSniffer/issues/375
3950+ [#377]: https://github.com/squizlabs/PHP_CodeSniffer/issues/377
3951+ [#379]: https://github.com/squizlabs/PHP_CodeSniffer/issues/379
3952+ [#382]: https://github.com/squizlabs/PHP_CodeSniffer/issues/382
3953+ [#383]: https://github.com/squizlabs/PHP_CodeSniffer/issues/383
3954+ [#386]: https://github.com/squizlabs/PHP_CodeSniffer/issues/386
3955+ [#390]: https://github.com/squizlabs/PHP_CodeSniffer/issues/390
3956+ [#392]: https://github.com/squizlabs/PHP_CodeSniffer/issues/392
3957+ [#400]: https://github.com/squizlabs/PHP_CodeSniffer/issues/400
3958+ [#401]: https://github.com/squizlabs/PHP_CodeSniffer/issues/401
3959+ [#405]: https://github.com/squizlabs/PHP_CodeSniffer/issues/405
3960+ [#407]: https://github.com/squizlabs/PHP_CodeSniffer/issues/407
3961+ [#410]: https://github.com/squizlabs/PHP_CodeSniffer/issues/410
3962+ [#411]: https://github.com/squizlabs/PHP_CodeSniffer/issues/411
3963+ [#412]: https://github.com/squizlabs/PHP_CodeSniffer/issues/412
3964+ [#414]: https://github.com/squizlabs/PHP_CodeSniffer/issues/414
3965+ [#423]: https://github.com/squizlabs/PHP_CodeSniffer/issues/423
3966+ [#433]: https://github.com/squizlabs/PHP_CodeSniffer/issues/433
3967+ [#434]: https://github.com/squizlabs/PHP_CodeSniffer/issues/434
3968+ [#452]: https://github.com/squizlabs/PHP_CodeSniffer/issues/452
3969+ [#20481]: https://pear.php.net/bugs/bug.php?id=20481
3970+ [#20482]: https://pear.php.net/bugs/bug.php?id=20482
39473971
39483972## [2.1.0] - 2014-12-18
39493973### Changed
3950- - Time and memory output is now shown if progress information is also shown (request #335)
3951- - A tilde can now be used to reference a user's home directory in a path to a standard (request #353)
3974+ - Time and memory output is now shown if progress information is also shown (request [ #335] )
3975+ - A tilde can now be used to reference a user's home directory in a path to a standard (request [ #353] )
39523976- Added PHP_CodeSniffer_File::findStartOfStatement() to find the first non-whitespace token in a statement
39533977 - Possible alternative for code using PHP_CodeSniffer_File::findPrevious() with the local flag set
39543978- Added PHP_CodeSniffer_File::findEndOfStatement() to find the last non-whitespace token in a statement
@@ -3957,7 +3981,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
39573981 - Affects OpeningFunctionBraceBsdAllmanSniff and OpeningFunctionBraceKernighanRitchieSniff
39583982 - Also enforced in PEAR FunctionDeclarationSniff and Squiz MultiLineFunctionDeclarationSniff
39593983- Generic DisallowTabIndentSniff now replaces tabs everywhere it finds them, except in strings and here/now docs
3960- - Generic EmptyStatementSniff error codes now contain the type of empty statement detected (request #314)
3984+ - Generic EmptyStatementSniff error codes now contain the type of empty statement detected (request [ #314] )
39613985 - All messages generated by this sniff are now errors (empty CATCH was previously a warning)
39623986 - Message code Generic.CodeAnalysis.EmptyStatement.NotAllowed has been removed
39633987 - Message code Generic.CodeAnalysis.EmptyStatement.NotAllowedWarning has been removed
@@ -3967,7 +3991,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
39673991- PEAR and Squiz FunctionCommentSniffs no longer ban @return tags for constructors and destructors
39683992 - Removed message PEAR.Commenting.FunctionComment.ReturnNotRequired
39693993 - Removed message Squiz.Commenting.FunctionComment.ReturnNotRequired
3970- - Change initiated by request #324 and request #369
3994+ - Change initiated by request [ #324] and request [ #369]
39713995- Squiz EmptyStatementSniff has been removed
39723996 - Squiz standard now includes Generic EmptyStatementSniff and turns off the empty CATCH error
39733997- Squiz ControlSignatureSniff fixes now retain comments between the closing parenthesis and open brace
@@ -3976,21 +4000,41 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
39764000- Squiz ArrayDeclarationSniff now skips function calls while checking multi-line arrays
39774001
39784002### Fixed
3979- - Fixed bug #337 : False positive with anonymous functions in Generic_Sniffs_WhiteSpace_ScopeIndentSniff
3980- - Fixed bug #339 : reformatting brace location can result in broken code
3981- - Fixed bug #342 : Nested ternary operators not tokenized correctly
3982- - Fixed bug #345 : Javascript regex not tokenized when inside array
3983- - Fixed bug #346 : PHP path can't be determined in some cases in "phpcs.bat" (on Windows XP)
3984- - Fixed bug #358 : False positives for Generic_Sniffs_WhiteSpace_ScopeIndentSniff
3985- - Fixed bug #361 : Sniff-specific exclude patterns don't work for Windows
3986- - Fixed bug #364 : Don't interpret "use function" as declaration
3987- - Fixed bug #366 : phpcbf with PSR2 errors on control structure alternative syntax
3988- - Fixed bug #367 : Nested Anonymous Functions Causing False Negative
3989- - Fixed bug #371 : Shorthand binary cast causes tokenizer errors
4003+ - Fixed bug [ #337] : False positive with anonymous functions in Generic_Sniffs_WhiteSpace_ScopeIndentSniff
4004+ - Fixed bug [ #339] : reformatting brace location can result in broken code
4005+ - Fixed bug [ #342] : Nested ternary operators not tokenized correctly
4006+ - Fixed bug [ #345] : Javascript regex not tokenized when inside array
4007+ - Fixed bug [ #346] : PHP path can't be determined in some cases in "phpcs.bat" (on Windows XP)
4008+ - Fixed bug [ #358] : False positives for Generic_Sniffs_WhiteSpace_ScopeIndentSniff
4009+ - Fixed bug [ #361] : Sniff-specific exclude patterns don't work for Windows
4010+ - Fixed bug [ #364] : Don't interpret "use function" as declaration
4011+ - Fixed bug [ #366] : phpcbf with PSR2 errors on control structure alternative syntax
4012+ - Fixed bug [ #367] : Nested Anonymous Functions Causing False Negative
4013+ - Fixed bug [ #371] : Shorthand binary cast causes tokenizer errors
39904014 - New token T_BINARY_CAST added for the b"string" cast format (the 'b' is the T_BINARY_CAST token)
3991- - Fixed bug #372 : phpcbf parse problem, wrong brace placement for inline IF
3992- - Fixed bug #373 : Double quote usage fix removing too many double quotes
3993- - Fixed bug #20196 : 1.5.2 breaks scope_closer position
4015+ - Fixed bug [#372] : phpcbf parse problem, wrong brace placement for inline IF
4016+ - Fixed bug [#373] : Double quote usage fix removing too many double quotes
4017+ - Fixed bug [#20196] : 1.5.2 breaks scope_closer position
4018+
4019+ [#314]: https://github.com/squizlabs/PHP_CodeSniffer/issues/314
4020+ [#324]: https://github.com/squizlabs/PHP_CodeSniffer/issues/324
4021+ [#335]: https://github.com/squizlabs/PHP_CodeSniffer/issues/335
4022+ [#337]: https://github.com/squizlabs/PHP_CodeSniffer/issues/337
4023+ [#339]: https://github.com/squizlabs/PHP_CodeSniffer/issues/339
4024+ [#342]: https://github.com/squizlabs/PHP_CodeSniffer/issues/342
4025+ [#345]: https://github.com/squizlabs/PHP_CodeSniffer/issues/345
4026+ [#346]: https://github.com/squizlabs/PHP_CodeSniffer/issues/346
4027+ [#353]: https://github.com/squizlabs/PHP_CodeSniffer/issues/353
4028+ [#358]: https://github.com/squizlabs/PHP_CodeSniffer/issues/358
4029+ [#361]: https://github.com/squizlabs/PHP_CodeSniffer/issues/361
4030+ [#364]: https://github.com/squizlabs/PHP_CodeSniffer/pull/364
4031+ [#366]: https://github.com/squizlabs/PHP_CodeSniffer/issues/366
4032+ [#367]: https://github.com/squizlabs/PHP_CodeSniffer/issues/367
4033+ [#369]: https://github.com/squizlabs/PHP_CodeSniffer/issues/369
4034+ [#371]: https://github.com/squizlabs/PHP_CodeSniffer/issues/371
4035+ [#372]: https://github.com/squizlabs/PHP_CodeSniffer/issues/372
4036+ [#373]: https://github.com/squizlabs/PHP_CodeSniffer/issues/373
4037+ [#20196]: https://pear.php.net/bugs/bug.php?id=20196
39944038
39954039## [2.0.0] - 2014-12-05
39964040### Changed
@@ -4022,9 +4066,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
40224066- Improved fixing of lines after cases statements in Squiz SwitchDeclarationSniff
40234067
40244068### Fixed
4025- - Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
4026- - Fixed bug #320 : Code sniffer indentation issue
4027- - Fixed bug #333 : Nested ternary operators causing problems
4069+ - Fixed bug [#311] : Suppression of function prototype breaks checking of lines within function
4070+ - Fixed bug [#320] : Code sniffer indentation issue
4071+ - Fixed bug [#333] : Nested ternary operators causing problems
4072+
4073+ [#311]: https://github.com/squizlabs/PHP_CodeSniffer/issues/311
4074+ [#320]: https://github.com/squizlabs/PHP_CodeSniffer/issues/320
4075+ [#333]: https://github.com/squizlabs/PHP_CodeSniffer/issues/333
40284076
40294077## [1.5.6] - 2014-12-05
40304078### Changed
0 commit comments