Remove three PHPCS VIP rules that don't apply to WooCommerce

This commit removes the following PHPCS VIP rules:

- WordPress.VIP.DirectDatabaseQuery.NoCaching
- WordPress.VIP.DirectDatabaseQuery.SchemaChange
- WordPress.VIP.FileSystemWritesDisallow.file_ops_fwrite
This commit is contained in:
Rodrigo Primo 2017-11-23 11:41:31 -02:00
parent 2795a3399b
commit f5d2a1d98b
1 changed files with 4 additions and 1 deletions

View File

@ -22,8 +22,11 @@
<rule ref="PHPCompatibility"/>
<rule ref="WordPress">
<exclude name="WordPress.VIP.RestrictedFunctions" />
<exclude name="WordPress.VIP.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPress.VIP.DirectDatabaseQuery.SchemaChange" />
<exclude name="WordPress.VIP.FileSystemWritesDisallow.file_ops_fwrite" />
<exclude name="WordPress.VIP.OrderByRand" />
<exclude name="WordPress.VIP.RestrictedFunctions" />
</rule>
<rule ref="WordPress.VIP.ValidatedSanitizedInput">
<properties>