-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
26 lines (24 loc) · 899 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
23
24
25
26
<?xml version="1.0"?>
<ruleset name="10up PHPCS">
<description>10up PHPCS extended.</description>
<rule ref="10up-Default" />
<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>
<rule ref="WordPress.DB.SlowDBQuery">
<exclude-pattern>/tests/*.php</exclude-pattern>
</rule>
</ruleset>