-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
28 lines (28 loc) · 1.07 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
<?xml version="1.0"?>
<ruleset name="HSPH WordPress Coding Standards">
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/assets/*</exclude-pattern>
<arg name="extensions" value="php"/>
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress">
<!-- This plugin heavily relies on direct DB calls because of custom tables. -->
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
<exclude name="WordPress.DB.PreparedSQL"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="multitaxo" />
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.7" />
</properties>
</rule>
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_theme" value="false" />
</properties>
</rule>
</ruleset>