-
Notifications
You must be signed in to change notification settings - Fork 312
/
phpcs.xml
34 lines (30 loc) · 1.23 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<ruleset name="10up PHPCS">
<description>10up PHPCS extended.</description>
<exclude-pattern>*/vendor-prefixed/*</exclude-pattern>
<rule ref="10up-Default">
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
<exclude name="WordPress.DB.SlowDBQuery" />
</rule>
<rule ref="PHPCompatibilityWP" />
<rule ref="WordPress.Security.NonceVerification.Recommended">
<exclude-pattern>/tests/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.DiscouragedFunctions.query_posts_query_posts">
<exclude-pattern>/tests/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query">
<exclude-pattern>/tests/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.PostsPerPage.posts_per_page_posts_per_page">
<exclude-pattern>/tests/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude-pattern>/tests/*.php</exclude-pattern>
</rule>
<!--
Prevent errors caused by WordPress Coding Standards not supporting PHP 8.0+.
See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
-->
<ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" />
</ruleset>