-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
55 lines (43 loc) · 1.72 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0"?>
<ruleset name="Template_Usage">
<config name="installed_paths" value="../../wp-coding-standards/wpcs,../../phpcompatibility/php-compatibility,../../automattic/phpcs-neutron-standard" />
<config name="testVersion" value="7.3-"/>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<arg value="sp"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<rule ref="PHPCompatibility"/>
<rule ref="WordPress">
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" />
</rule>
<rule ref="WordPress-Extra">
<exclude name="WordPress.Files.FileName" />
</rule>
<rule ref="NeutronStandard">
<exclude name="NeutronStandard.Functions.LongFunction.LongFunction" />
<exclude name="NeutronStandard.AssignAlign.DisallowAssignAlign.Aligned" />
<exclude name="NeutronStandard.Functions.TypeHint.NoArgumentType" />
<exclude name="NeutronStandard.Functions.TypeHint.NoReturnType" />
<exclude name="NeutronStandard.StrictTypes.RequireStrictTypes.StrictTypes" />
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="template-usage" />
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="5.0" />
</properties>
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="-/."/>
</properties>
</rule>
</ruleset>