-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpcs.xml
42 lines (34 loc) · 1.28 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
<?xml version="1.0"?>
<ruleset name="WordPress-CTCL">
<description>WordPress VIP + Short Arrays.</description>
<rule ref="WordPress" />
<rule ref="WordPress-VIP-Go" />
<!--
Prevent errors caused by WordPress Coding Standards not supporting PHP 8.0+.
See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
-->
<ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" />
<rule ref="WordPress">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
</rule>
<rule ref="WordPressVIPMinimum">
<exclude name="WordPressVIPMinimum.Classes.RestrictedExtendClasses.wp_cli" />
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<!-- see https://github.com/sirbrillig/phpcs-variable-analysis/issues/175 -->
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
<properties>
<property name="allowUnusedFunctionParameters" value="true"/>
</properties>
</rule>
<arg name="colors" />
<arg value="ps" />
<arg name="basepath" value="."/>
<arg name="parallel" value="50"/>
<arg name="extensions" value="php"/>
<arg name="severity" value="1"/>
<file>.</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>