-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphpcs.xml
31 lines (24 loc) · 880 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
27
28
29
30
31
<?xml version="1.0"?>
<ruleset name="AMF WordPress">
<description>PHP Coding Standards</description>
<!-- Set a minimum PHP version for PHPCompatibility. -->
<config name="testVersion" value="7.2-" />
<!-- Show sniff codes in all reports. -->
<arg value="s" />
<!-- Check PHP files only. -->
<arg name="extensions" value="php" />
<!-- Exclude external libraries and builds. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/asset-manager-framework/*</exclude-pattern>
<!-- Check for PHP cross-version compatibility. -->
<rule ref="PHPCompatibilityWP" />
<!-- Use the Human Made coding standards. -->
<rule ref="HM">
<exclude name="WordPress.WP.CapitalPDangit" />
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="-/" />
</properties>
</rule>
</ruleset>