@@ -3939,11 +3939,17 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3939
3939
- Thanks to [ Thibaud Fabre] [ @fabre-thibaud ] for the patch
3940
3940
3941
3941
### Fixed
3942
- - Fixed bug #280 : The --config-show option generates error when there is no config file
3943
- - Fixed bug #306 : File containing only a namespace declaration raises undefined index notice
3944
- - Fixed bug #308 : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
3945
- - Fixed bug #310 : Variadics not recognized by tokenizer
3946
- - Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
3942
+ - Fixed bug [ #280 ] [ sq-280 ] : The --config-show option generates error when there is no config file
3943
+ - Fixed bug [ #306 ] [ sq-306 ] : File containing only a namespace declaration raises undefined index notice
3944
+ - Fixed bug [ #308 ] [ sq-308 ] : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
3945
+ - Fixed bug [ #310 ] [ sq-310 ] : Variadics not recognized by tokenizer
3946
+ - Fixed bug [ #311 ] [ sq-311 ] : Suppression of function prototype breaks checking of lines within function
3947
+
3948
+ [ sq-280 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/280
3949
+ [ sq-306 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/306
3950
+ [ sq-308 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/308
3951
+ [ sq-310 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/310
3952
+ [ sq-311 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/311
3947
3953
3948
3954
## [ 2.0.0RC4] - 2014-11-07
3949
3955
### Changed
@@ -3969,14 +3975,23 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3969
3975
- Running unit tests with the -v CLI argument no longer generates PHP errors
3970
3976
3971
3977
### Fixed
3972
- - Fixed bug #295 : ScopeIndentSniff hangs when processing nested closures
3973
- - Fixed bug #298 : False positive in ScopeIndentSniff when anonymous functions are used with method chaining
3974
- - Fixed bug #302 : Fixing code in Squiz InlineComment sniff can remove some comment text
3975
- - Fixed bug #303 : Open and close tag on same line can cause a PHP notice checking scope indent
3976
- - Fixed bug #306 : File containing only a namespace declaration raises undefined index notice
3977
- - Fixed bug #307 : Conditional breaks in case statements get incorrect indentations
3978
- - Fixed bug #308 : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
3979
- - Fixed bug #310 : Variadics not recognized by tokenizer
3978
+ - Fixed bug [ #295 ] [ sq-295 ] : ScopeIndentSniff hangs when processing nested closures
3979
+ - Fixed bug [ #298 ] [ sq-298 ] : False positive in ScopeIndentSniff when anonymous functions are used with method chaining
3980
+ - Fixed bug [ #302 ] [ sq-302 ] : Fixing code in Squiz InlineComment sniff can remove some comment text
3981
+ - Fixed bug [ #303 ] [ sq-303 ] : Open and close tag on same line can cause a PHP notice checking scope indent
3982
+ - Fixed bug [ #306 ] [ sq-306 ] : File containing only a namespace declaration raises undefined index notice
3983
+ - Fixed bug [ #307 ] [ sq-307 ] : Conditional breaks in case statements get incorrect indentations
3984
+ - Fixed bug [ #308 ] [ sq-308 ] : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
3985
+ - Fixed bug [ #310 ] [ sq-310 ] : Variadics not recognized by tokenizer
3986
+
3987
+ [ sq-295 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/295
3988
+ [ sq-298 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/298
3989
+ [ sq-302 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/302
3990
+ [ sq-303 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/303
3991
+ [ sq-306 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/306
3992
+ [ sq-307 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/307
3993
+ [ sq-308 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/308
3994
+ [ sq-310 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/310
3980
3995
3981
3996
## [ 2.0.0RC3] - 2014-10-16
3982
3997
### Changed
@@ -3997,26 +4012,29 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3997
4012
- Squiz EmbeddedPhpSniff now checks open and close tag indents and fixes some errors
3998
4013
- Squiz FileCommentSniff no longer throws incorrect blank line before comment errors in JS files
3999
4014
- Squiz ClassDeclarationSniff now has better checking for blank lines after a closing brace
4000
- - Removed error Squiz.Classes.ClassDeclaration.NoNewlineAfterCloseBrace (request #285 )
4015
+ - Removed error Squiz.Classes.ClassDeclaration.NoNewlineAfterCloseBrace (request [ #285 ] [ sq-285 ] )
4001
4016
- Already handled by Squiz.Classes.ClassDeclaration.CloseBraceSameLine
4002
4017
4003
4018
### Fixed
4004
- - Fixed bug #280 : The --config-show option generates error when there is no config file
4019
+ - Fixed bug [ #280 ] [ sq-280 ] : The --config-show option generates error when there is no config file
4020
+
4021
+ [ sq-280 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/280
4022
+ [ sq-285 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/285
4005
4023
4006
4024
## [ 2.0.0RC2] - 2014-09-26
4007
4025
### Changed
4008
- - Minified JS and CSS files are now detected and skipped (fixes bug #252 and bug #19899 )
4026
+ - Minified JS and CSS files are now detected and skipped (fixes bug [ #252 ] [ sq-252 ] and bug [ #19899 ] [ pear-19899 ] )
4009
4027
- A warning will be added to the file so it can be found in the report and ignored in the future
4010
4028
- Fixed incorrect length of JS object operator tokens
4011
4029
- PHP tokenizer no longer converts class/function names to special tokens types
4012
4030
- Class/function names such as parent and true would become special tokens such as T_PARENT and T_TRUE
4013
- - PHPCS can now exit with 0 if only warnings were found (request #262 )
4031
+ - PHPCS can now exit with 0 if only warnings were found (request [ #262 ] [ sq-262 ] )
4014
4032
- Set the ignore_warnings_on_exit config variable to 1 to set this behaviour
4015
4033
- Default remains at exiting with 0 only if no errors and no warnings were found
4016
4034
- Also changes return value of PHP_CodeSniffer_Reporting::printReport()
4017
4035
- Rulesets can now set associative array properties
4018
4036
- property name="[ property] " type="array" value="foo=>bar,baz=>qux"
4019
- - Generic ForbiddenFunctionsSniff now has a public property called forbiddenFunctions (request #263 )
4037
+ - Generic ForbiddenFunctionsSniff now has a public property called forbiddenFunctions (request [ #263 ] [ sq-263 ] )
4020
4038
- Override the property in a ruleset.xml file to define forbidden functions and their replacements
4021
4039
- A replacement of NULL indicates that no replacement is available
4022
4040
- e.g., value="delete=>unset,print=>echo,create_function=>null"
@@ -4028,14 +4046,14 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4028
4046
- If 2 sniffs look to be conflicting, one change will be ignored to allow a fix to occur
4029
4047
- Generic CamelCapsFunctionNameSniff now ignores a single leading underscore
4030
4048
- Thanks to [ Alex Slobodiskiy] [ @xt99 ] for the patch
4031
- - Standards can now be located within hidden directories (further fix for bug #20323 )
4049
+ - Standards can now be located within hidden directories (further fix for bug [ #20323 ] [ pear-20323 ] )
4032
4050
- Thanks to [ Klaus Purer] [ @klausi ] for the patch
4033
4051
- Sniff ignore patterns now replace Win dir separators like file ignore patterns already did
4034
4052
- Exclude patterns now use backtick delimiters, allowing all special characters to work correctly again
4035
4053
- Thanks to [ Jeremy Edgell] [ @jedgell ] for the patch
4036
4054
- Errors converted to warnings in a ruleset (and vice versa) now retain their fixable status
4037
4055
- Thanks to [ Alexander Obuhovich] [ @aik099 ] for the patch
4038
- - Squiz ConcatenationSpacingSniff now has a setting to specify how many spaces there should around concat operators
4056
+ - Squiz ConcatenationSpacingSniff now has a setting to specify how many spaces there should be around concat operators
4039
4057
- Default remains at 0
4040
4058
- Override the "spacing" setting in a ruleset.xml file to change
4041
4059
- Added auto-fixes for Squiz InlineCommentSniff
@@ -4053,15 +4071,29 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4053
4071
- Generic UpperCaseConstantSniff and LowerCaseConstantSniff now ignore function names
4054
4072
4055
4073
### Fixed
4056
- - Fixed bug #243 : Missing DocBlock not detected
4057
- - Fixed bug #248 : FunctionCommentSniff expects ampersand on param name
4058
- - Fixed bug #265 : False positives with type hints in ForbiddenFunctionsSniff
4059
- - Fixed bug #20373 : Inline comment sniff tab handling way
4060
- - Fixed bug #20377 : Error when trying to execute phpcs with report=json
4061
- - Fixed bug #20378 : Report appended to existing file if no errors found in run
4062
- - Fixed bug #20381 : Invalid "Comment closer must be on a new line"
4074
+ - Fixed bug [ #243 ] [ sq-243 ] : Missing DocBlock not detected
4075
+ - Fixed bug [ #248 ] [ sq-248 ] : FunctionCommentSniff expects ampersand on param name
4076
+ - Fixed bug [ #265 ] [ sq-265 ] : False positives with type hints in ForbiddenFunctionsSniff
4077
+ - Fixed bug [ #20373 ] [ pear-20373 ] : Inline comment sniff tab handling way
4078
+ - Fixed bug [ #20377 ] [ pear-20377 ] : Error when trying to execute phpcs with report=json
4079
+ - Fixed bug [ #20378 ] [ pear-20378 ] : Report appended to existing file if no errors found in run
4080
+ - Fixed bug [ #20381 ] [ pear-20381 ] : Invalid "Comment closer must be on a new line"
4063
4081
- Thanks to [ Brad Kent] [ @bkdotcom ] for the patch
4064
- - Fixed bug #20402 : SVN pre-commit hook fails due to unknown argument error
4082
+ - Fixed bug [ #20402 ] [ pear-20402 ] : SVN pre-commit hook fails due to unknown argument error
4083
+
4084
+ [ sq-243 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/243
4085
+ [ sq-248 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/248
4086
+ [ sq-252 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/252
4087
+ [ sq-262 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/262
4088
+ [ sq-263 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/263
4089
+ [ sq-265 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/265
4090
+ [ pear-19899 ] : https://pear.php.net/bugs/bug.php?id=19899
4091
+ [ pear-20323 ] : https://pear.php.net/bugs/bug.php?id=20323
4092
+ [ pear-20373 ] : https://pear.php.net/bugs/bug.php?id=20373
4093
+ [ pear-20377 ] : https://pear.php.net/bugs/bug.php?id=20377
4094
+ [ pear-20378 ] : https://pear.php.net/bugs/bug.php?id=20378
4095
+ [ pear-20381 ] : https://pear.php.net/bugs/bug.php?id=20381
4096
+ [ pear-20402 ] : https://pear.php.net/bugs/bug.php?id=20402
4065
4097
4066
4098
## [ 1.5.5] - 2014-09-25
4067
4099
### Changed
0 commit comments