Skip to content

Commit

Permalink
Soft deprecate sniffs which will be removed for PHPCS 4.0
Browse files Browse the repository at this point in the history
CSS/JS tokenizers will be removed for PHPCS 4: squizlabs/PHP_CodeSniffer#2448

This commit _soft_ deprecates these sniffs with a `@deprecated` annotation. They will also get a mention in the changelog.

Hard deprecation using the PHPCS 3.9.0 native handling of deprecated sniffs will follow.

See #442.
  • Loading branch information
GaryJones committed Feb 16, 2024
1 parent cd46915 commit 077c7b2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* WordPressVIPMinimum_Sniffs_JS_DangerouslySetInnerHTMLSniff.
*
* @package VIPCS\WordPressVIPMinimum
*
* @deprecated 3.1.0
*/

namespace WordPressVIPMinimum\Sniffs\JS;
Expand Down
2 changes: 2 additions & 0 deletions WordPressVIPMinimum/Sniffs/JS/HTMLExecutingFunctionsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* WordPressVIPMinimum_Sniffs_Files_IncludingFileSniff.
*
* @package VIPCS\WordPressVIPMinimum
*
* @deprecated 3.1.0
*/

namespace WordPressVIPMinimum\Sniffs\JS;
Expand Down
2 changes: 2 additions & 0 deletions WordPressVIPMinimum/Sniffs/JS/InnerHTMLSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* WordPressVIPMinimum_Sniffs_Files_IncludingFileSniff.
*
* @package VIPCS\WordPressVIPMinimum
*
* @deprecated 3.1.0
*/

namespace WordPressVIPMinimum\Sniffs\JS;
Expand Down
2 changes: 2 additions & 0 deletions WordPressVIPMinimum/Sniffs/JS/StringConcatSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* WordPressVIPMinimum_Sniffs_Files_IncludingFileSniff.
*
* @package VIPCS\WordPressVIPMinimum
*
* @deprecated 3.1.0
*/

namespace WordPressVIPMinimum\Sniffs\JS;
Expand Down
2 changes: 2 additions & 0 deletions WordPressVIPMinimum/Sniffs/JS/StrippingTagsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* WordPressVIPMinimum_Sniffs_Files_IncludingFileSniff.
*
* @package VIPCS\WordPressVIPMinimum
*
* @deprecated 3.1.0
*/

namespace WordPressVIPMinimum\Sniffs\JS;
Expand Down
2 changes: 2 additions & 0 deletions WordPressVIPMinimum/Sniffs/JS/WindowSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* WordPressVIPMinimum_Sniffs_JS_WindowSniff.
*
* @package VIPCS\WordPressVIPMinimum
*
* @deprecated 3.1.0
*/

namespace WordPressVIPMinimum\Sniffs\JS;
Expand Down

0 comments on commit 077c7b2

Please sign in to comment.