forked from johnbillion/extended-cpts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
46 lines (37 loc) · 1.46 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="Extended CPTs">
<config name="testVersion" value="7.0-"/>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Include the PHP version compatibility standard. -->
<rule ref="PHPCompatibility"/>
<!-- Include the Neutron standard. -->
<rule ref="NeutronStandard">
<exclude name="NeutronStandard.Globals.DisallowGlobalFunctions.GlobalFunctions"/>
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma"/>
<exclude name="NeutronStandard.Functions.DisallowCallUserFunc.CallUserFunc"/>
<exclude name="NeutronStandard.AssignAlign.DisallowAssignAlign.Aligned"/>
<exclude name="NeutronStandard.Functions.LongFunction.LongFunction"/>
</rule>
<!-- Include the WordPress-Extra standard. -->
<rule ref="WordPress-Extra">
<exclude name="PEAR.Functions.FunctionCallSignature"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date"/>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="extended-cpts"/>
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.8"/>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="-/"/>
</properties>
</rule>
</ruleset>