Skip to content

Commit 3fcb86f

Browse files
committed
Adjust the Toolset ruleset.
1 parent e120137 commit 3fcb86f

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

standards/Toolset/ruleset.xml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,29 @@
133133
<severity>0</severity>
134134
</rule>
135135

136+
<!-- This produces false alarms because we don't use the nonce verfication directly. -->
137+
<rule ref="WordPress.Security.NonceVerification.NoNonceVerification">
138+
<severity>0</severity>
139+
</rule>
140+
141+
<!--
142+
We're using also slashes in hook names.
143+
TODO: Still validate hook names, only allow slashes
144+
-->
145+
<rule ref="WordPress.NamingConventions.ValidHookName.UseUnderscores">
146+
<severity>0</severity>
147+
</rule>
148+
149+
150+
<!--
151+
TEST-SPECIFIC EXCLUSIONS
152+
-->
136153
<rule ref="Squiz.Commenting.ClassComment.Missing">
137154
<exclude-pattern>*/phpunit/*</exclude-pattern>
138155
</rule>
139156

140-
<!-- This produces false alarms because we don't use the nonce verfication directly. -->
141-
<rule ref="WordPress.Security.NonceVerification.NoNonceVerification">
142-
<severity>0</severity>
157+
<rule ref="WordPress.WP.GlobalVariablesOverride.OverrideProhibited">
158+
<exclude-pattern>*/phpunit/*</exclude-pattern>
143159
</rule>
144160

145161

0 commit comments

Comments
 (0)