-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwp.xml
More file actions
92 lines (77 loc) · 3.35 KB
/
wp.xml
File metadata and controls
92 lines (77 loc) · 3.35 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0"?>
<ruleset name="DELTA-WordPress-Development">
<description>A custom set of rules based on WordPress project</description>
<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>
<!-- Load additional standards. -->
<config name="installed_paths" value="/misc/temp/phpcs/WordPress-Coding-Standards,/misc/temp/phpcs/PHPCompatibility,/misc/temp/phpcs/PHPCSUtils,/misc/temp/phpcs/PHPCSExtra" />
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Include the WordPress standard. -->
<rule ref="WordPress"/>
<!-- This rule is not part of the standard, but is used by WPCS natively. -->
<rule ref="PSR2.Methods.FunctionClosingBrace"/>
<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="5.6-99.0"/>
<rule ref="PHPCompatibility">
<!-- PHP 4.3 - Incorrect error. -->
<exclude name="PHPCompatibility.PHP.NewFunctionParameters.php_uname_modeFound"/>
<!-- Only applies to PHP 5.6.16 and older. -->
<exclude name="PHPCompatibility.PHP.NewConstants.mysqli_client_ssl_dont_verify_server_certFound"/>
<!-- PHP 8.1 - We don't care that the default flags for htmlspecialchars() has changed. Both defaults are acceptable. -->
<exclude name="PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet"/>
</rule>
<!-- Code quality. -->
<rule ref="Generic.CodeAnalysis"/>
<rule ref="Generic.Commenting"/>
<rule ref="Generic.Metrics"/>
<rule ref="Generic.PHP.Syntax"/>
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<property name="allowMultiline" value="true" />
</properties>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode"/>
<rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
<rule ref="Squiz.PHP.DiscouragedFunctions"/>
<rule ref="Squiz.PHP.Eval"/>
<rule ref="Squiz.PHP.InnerFunctions"/>
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
<rule ref="Squiz.PHP.NonExecutableCode"/>
<!-- Code commenting. -->
<rule ref="Squiz.Commenting.ClassComment"/>
<rule ref="Squiz.Commenting.FunctionComment">
<!-- Comment alignment spacing. -->
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName"/>
</rule>
<rule ref="Squiz.Commenting.VariableComment"/>
<!-- Override statement alignment to have a single space. -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="1" />
</properties>
</rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment">
<properties>
<property name="maxColumn" value="1"/>
</properties>
</rule>
<!-- Set is_theme property to allow theme filenames with theme hierarchy exceptions. -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="is_theme" value="true"/>
</properties>
</rule>
<!-- Forbidden functions. -->
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="sizeof=>count,delete=>unset,print=>echo,create_function=>null,array_push=>null,array_key_exists=>isset" />
</properties>
</rule>
</ruleset>