-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
24 lines (21 loc) · 1.23 KB
/
ruleset.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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Personio" namespace="PersonioCS\Personio" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Personio Integration Coding Standards</description>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress">
<!-- Exclude direkt db query warnings -->
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
<exclude name="WordPress.DB.PreparedSQL.NotPrepared"/>
<!-- 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 name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText" />
</rule>
</ruleset>