-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
20 lines (18 loc) · 1002 Bytes
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="AutoCategoryForPosts" namespace="AutoCategoryForPosts\AutoCategoryForPosts" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Auto Category For Posts Coding Standards</description>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress">
<!-- Excluded in favour to match PSR-4-namings of classes. -->
<exclude name="WordPress.Files.FileName"/>
<!-- Exclude slow query -->
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query"/>
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key"/>
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_tax_query"/>
<!-- Exclude override of globals -->
<exclude name="WordPress.WP.GlobalVariablesOverride"/>
<!-- Exclude direkt db query warnings -->
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
</rule>
</ruleset>