Skip to content

Commit 93e180f

Browse files
rodrigoprimojrfnl
authored andcommitted
Update the 2.2.0, 2.1.0 and 2.0.0 sections to use the new format for links
1 parent a4084ce commit 93e180f

File tree

1 file changed

+93
-93
lines changed

1 file changed

+93
-93
lines changed

CHANGELOG.md

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -3902,77 +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][sq-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][sq-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][sq-423])
3911+
- Generic CharacterBeforePHPOpeningTagSniff now only checks the first PHP tag it finds (request [#423][sq-423])
3912+
- Generic CharacterBeforePHPOpeningTagSniff now allows a shebang line at the start of the file (request [#20481][pear-20481])
3913+
- Generic InlineHTMLUnitTest now allows a shebang line at the start of the file (request [#20481][pear-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][sq-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][sq-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
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
3930+
- Fixed bug [#379][sq-379] : Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast incorrectly detects comments
3931+
- Fixed bug [#382][sq-382] : JS tokenizer incorrect for inline conditionally created immediately invoked anon function
3932+
- Fixed bug [#383][sq-383] : Squiz.Arrays.ArrayDeclaration.ValueNoNewline incorrectly detects nested arrays
3933+
- Fixed bug [#386][sq-386] : Undefined offset in Squiz.FunctionComment sniff when param has no comment
3934+
- Fixed bug [#390][sq-390] : Indentation of non-control structures isn't adjusted when containing structure is fixed
3935+
- Fixed bug [#400][sq-400] : InlineControlStructureSniff fails to fix when statement has no semicolon
3936+
- Fixed bug [#401][sq-401] : PHPCBF no-patch option shows an error when there are no fixable violations in a file
3937+
- Fixed bug [#405][sq-405] : The "Squiz.WhiteSpace.FunctionSpacing" sniff removes class "}" during fixing
3938+
- Fixed bug [#407][sq-407] : PEAR.ControlStructures.MultiLineCondition doesn't account for comments at the end of lines
3939+
- Fixed bug [#410][sq-410] : The "Squiz.WhiteSpace.MemberVarSpacing" not respecting "var"
3940+
- Fixed bug [#411][sq-411] : Generic.WhiteSpace.ScopeIndent.Incorrect - false positive with multiple arrays in argument list
3941+
- Fixed bug [#412][sq-412] : PSR2 multi-line detection doesn't work for inline IF and string concats
3942+
- Fixed bug [#414][sq-414] : Squiz.WhiteSpace.MemberVarSpacing - inconsistent checking of member vars with comment
3943+
- Fixed bug [#433][sq-433] : Wrong detection of Squiz.Arrays.ArrayDeclaration.KeyNotAligned when key contains space
3944+
- Fixed bug [#434][sq-434] : False positive for spacing around "=>" in inline array within foreach
3945+
- Fixed bug [#452][sq-452] : Ruleset exclude-pattern for specific sniff code ignored when using CLI --ignore option
3946+
- Fixed bug [#20482][pear-20482] : Scope indent sniff can get into infinite loop when processing a parse error
3947+
3948+
[sq-348]: https://github.com/squizlabs/PHP_CodeSniffer/issues/348
3949+
[sq-375]: https://github.com/squizlabs/PHP_CodeSniffer/issues/375
3950+
[sq-377]: https://github.com/squizlabs/PHP_CodeSniffer/issues/377
3951+
[sq-379]: https://github.com/squizlabs/PHP_CodeSniffer/issues/379
3952+
[sq-382]: https://github.com/squizlabs/PHP_CodeSniffer/issues/382
3953+
[sq-383]: https://github.com/squizlabs/PHP_CodeSniffer/issues/383
3954+
[sq-386]: https://github.com/squizlabs/PHP_CodeSniffer/issues/386
3955+
[sq-390]: https://github.com/squizlabs/PHP_CodeSniffer/issues/390
3956+
[sq-392]: https://github.com/squizlabs/PHP_CodeSniffer/issues/392
3957+
[sq-400]: https://github.com/squizlabs/PHP_CodeSniffer/issues/400
3958+
[sq-401]: https://github.com/squizlabs/PHP_CodeSniffer/issues/401
3959+
[sq-405]: https://github.com/squizlabs/PHP_CodeSniffer/issues/405
3960+
[sq-407]: https://github.com/squizlabs/PHP_CodeSniffer/issues/407
3961+
[sq-410]: https://github.com/squizlabs/PHP_CodeSniffer/issues/410
3962+
[sq-411]: https://github.com/squizlabs/PHP_CodeSniffer/issues/411
3963+
[sq-412]: https://github.com/squizlabs/PHP_CodeSniffer/issues/412
3964+
[sq-414]: https://github.com/squizlabs/PHP_CodeSniffer/issues/414
3965+
[sq-423]: https://github.com/squizlabs/PHP_CodeSniffer/issues/423
3966+
[sq-433]: https://github.com/squizlabs/PHP_CodeSniffer/issues/433
3967+
[sq-434]: https://github.com/squizlabs/PHP_CodeSniffer/issues/434
3968+
[sq-452]: https://github.com/squizlabs/PHP_CodeSniffer/issues/452
3969+
[pear-20481]: https://pear.php.net/bugs/bug.php?id=20481
3970+
[pear-20482]: https://pear.php.net/bugs/bug.php?id=20482
39713971

39723972
## [2.1.0] - 2014-12-18
39733973
### Changed
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])
3974+
- Time and memory output is now shown if progress information is also shown (request [#335][sq-335])
3975+
- A tilde can now be used to reference a user's home directory in a path to a standard (request [#353][sq-353])
39763976
- Added PHP_CodeSniffer_File::findStartOfStatement() to find the first non-whitespace token in a statement
39773977
- Possible alternative for code using PHP_CodeSniffer_File::findPrevious() with the local flag set
39783978
- Added PHP_CodeSniffer_File::findEndOfStatement() to find the last non-whitespace token in a statement
@@ -3981,7 +3981,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
39813981
- Affects OpeningFunctionBraceBsdAllmanSniff and OpeningFunctionBraceKernighanRitchieSniff
39823982
- Also enforced in PEAR FunctionDeclarationSniff and Squiz MultiLineFunctionDeclarationSniff
39833983
- Generic DisallowTabIndentSniff now replaces tabs everywhere it finds them, except in strings and here/now docs
3984-
- 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][sq-314])
39853985
- All messages generated by this sniff are now errors (empty CATCH was previously a warning)
39863986
- Message code Generic.CodeAnalysis.EmptyStatement.NotAllowed has been removed
39873987
- Message code Generic.CodeAnalysis.EmptyStatement.NotAllowedWarning has been removed
@@ -3991,7 +3991,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
39913991
- PEAR and Squiz FunctionCommentSniffs no longer ban @return tags for constructors and destructors
39923992
- Removed message PEAR.Commenting.FunctionComment.ReturnNotRequired
39933993
- Removed message Squiz.Commenting.FunctionComment.ReturnNotRequired
3994-
- Change initiated by request [#324] and request [#369]
3994+
- Change initiated by request [#324][sq-324] and request [#369][sq-369]
39953995
- Squiz EmptyStatementSniff has been removed
39963996
- Squiz standard now includes Generic EmptyStatementSniff and turns off the empty CATCH error
39973997
- Squiz ControlSignatureSniff fixes now retain comments between the closing parenthesis and open brace
@@ -4000,41 +4000,41 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
40004000
- Squiz ArrayDeclarationSniff now skips function calls while checking multi-line arrays
40014001

40024002
### Fixed
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
4003+
- Fixed bug [#337][sq-337] : False positive with anonymous functions in Generic_Sniffs_WhiteSpace_ScopeIndentSniff
4004+
- Fixed bug [#339][sq-339] : reformatting brace location can result in broken code
4005+
- Fixed bug [#342][sq-342] : Nested ternary operators not tokenized correctly
4006+
- Fixed bug [#345][sq-345] : Javascript regex not tokenized when inside array
4007+
- Fixed bug [#346][sq-346] : PHP path can't be determined in some cases in "phpcs.bat" (on Windows XP)
4008+
- Fixed bug [#358][sq-358] : False positives for Generic_Sniffs_WhiteSpace_ScopeIndentSniff
4009+
- Fixed bug [#361][sq-361] : Sniff-specific exclude patterns don't work for Windows
4010+
- Fixed bug [#364][sq-364] : Don't interpret "use function" as declaration
4011+
- Fixed bug [#366][sq-366] : phpcbf with PSR2 errors on control structure alternative syntax
4012+
- Fixed bug [#367][sq-367] : Nested Anonymous Functions Causing False Negative
4013+
- Fixed bug [#371][sq-371] : Shorthand binary cast causes tokenizer errors
40144014
- New token T_BINARY_CAST added for the b"string" cast format (the 'b' is the T_BINARY_CAST token)
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
4015+
- Fixed bug [#372][sq-372] : phpcbf parse problem, wrong brace placement for inline IF
4016+
- Fixed bug [#373][sq-373] : Double quote usage fix removing too many double quotes
4017+
- Fixed bug [#20196][pear-20196] : 1.5.2 breaks scope_closer position
4018+
4019+
[sq-314]: https://github.com/squizlabs/PHP_CodeSniffer/issues/314
4020+
[sq-324]: https://github.com/squizlabs/PHP_CodeSniffer/issues/324
4021+
[sq-335]: https://github.com/squizlabs/PHP_CodeSniffer/issues/335
4022+
[sq-337]: https://github.com/squizlabs/PHP_CodeSniffer/issues/337
4023+
[sq-339]: https://github.com/squizlabs/PHP_CodeSniffer/issues/339
4024+
[sq-342]: https://github.com/squizlabs/PHP_CodeSniffer/issues/342
4025+
[sq-345]: https://github.com/squizlabs/PHP_CodeSniffer/issues/345
4026+
[sq-346]: https://github.com/squizlabs/PHP_CodeSniffer/issues/346
4027+
[sq-353]: https://github.com/squizlabs/PHP_CodeSniffer/issues/353
4028+
[sq-358]: https://github.com/squizlabs/PHP_CodeSniffer/issues/358
4029+
[sq-361]: https://github.com/squizlabs/PHP_CodeSniffer/issues/361
4030+
[sq-364]: https://github.com/squizlabs/PHP_CodeSniffer/pull/364
4031+
[sq-366]: https://github.com/squizlabs/PHP_CodeSniffer/issues/366
4032+
[sq-367]: https://github.com/squizlabs/PHP_CodeSniffer/issues/367
4033+
[sq-369]: https://github.com/squizlabs/PHP_CodeSniffer/issues/369
4034+
[sq-371]: https://github.com/squizlabs/PHP_CodeSniffer/issues/371
4035+
[sq-372]: https://github.com/squizlabs/PHP_CodeSniffer/issues/372
4036+
[sq-373]: https://github.com/squizlabs/PHP_CodeSniffer/issues/373
4037+
[pear-20196]: https://pear.php.net/bugs/bug.php?id=20196
40384038

40394039
## [2.0.0] - 2014-12-05
40404040
### Changed
@@ -4066,13 +4066,13 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
40664066
- Improved fixing of lines after cases statements in Squiz SwitchDeclarationSniff
40674067

40684068
### Fixed
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
4069+
- Fixed bug [#311][sq-311] : Suppression of function prototype breaks checking of lines within function
4070+
- Fixed bug [#320][sq-320] : Code sniffer indentation issue
4071+
- Fixed bug [#333][sq-333] : Nested ternary operators causing problems
40724072

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
4073+
[sq-311]: https://github.com/squizlabs/PHP_CodeSniffer/issues/311
4074+
[sq-320]: https://github.com/squizlabs/PHP_CodeSniffer/issues/320
4075+
[sq-333]: https://github.com/squizlabs/PHP_CodeSniffer/issues/333
40764076

40774077
## [1.5.6] - 2014-12-05
40784078
### Changed

0 commit comments

Comments
 (0)