Skip to content

Commit 8cd5160

Browse files
committed
4.0 | Remove all JS-specific sniffs
PHP_CodeSniffer 4.0 no longer support scanning of JS/CSS code, so these sniffs are no longer viable. Follow up on 839 Closes 442
1 parent fe2eaf3 commit 8cd5160

20 files changed

Lines changed: 2 additions & 1128 deletions

WordPress-VIP-Go/ruleset.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
<!-- The rules below are the changes from between the original sniff or parent ruleset, and what should be applied for this Standard. -->
66
<!-- Include the base VIP Minimum ruleset -->
7-
<rule ref="WordPressVIPMinimum">
8-
<exclude name="WordPressVIPMinimum.JS"/>
9-
</rule>
7+
<rule ref="WordPressVIPMinimum"/>
108

119
<!-- Things that may be incompatible with the VIP Go infrastructure and needs a dev to review -->
1210
<rule ref="WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_file_put_contents">

WordPressVIPMinimum/Sniffs/JS/DangerouslySetInnerHTMLSniff.php

Lines changed: 0 additions & 98 deletions
This file was deleted.

WordPressVIPMinimum/Sniffs/JS/HTMLExecutingFunctionsSniff.php

Lines changed: 0 additions & 159 deletions
This file was deleted.

WordPressVIPMinimum/Sniffs/JS/InnerHTMLSniff.php

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)