File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments