Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
47 lines (39 loc) · 1.58 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
47 lines (39 loc) · 1.58 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="The Hack Repair Guy's PHP Checker">
<description>WordPress coding standards and PHP 7.4+ compatibility for The Hack Repair Guy's PHP Checker.</description>
<file>.</file>
<exclude-pattern>/.git/*</exclude-pattern>
<exclude-pattern>/.review/*</exclude-pattern>
<exclude-pattern>/dist/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/plugin-update-checker/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg value="ps"/>
<config name="minimum_wp_version" value="6.4"/>
<config name="testVersion" value="7.4-"/>
<rule ref="WordPress-Extra">
<!-- This plugin follows the four-space house style used across these plugins. -->
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
<exclude name="Universal.WhiteSpace.PrecisionAlignment"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="thrg-php-checker"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="thrg"/>
<element value="THRG"/>
</property>
</properties>
</rule>
<rule ref="PHPCompatibilityWP"/>
</ruleset>