forked from 10up/ElasticPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
22 lines (20 loc) · 801 Bytes
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<ruleset name="10up PHPCS">
<description>10up PHPCS extended.</description>
<rule ref="10up-Default">
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
</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>
</ruleset>