-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
50 lines (44 loc) · 1.79 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
50 lines (44 loc) · 1.79 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
<?xml version="1.0"?>
<ruleset name="libresign-wp-customizations">
<description>Lean ruleset: security, compatibility and global-scope hygiene.</description>
<file>.</file>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<arg name="parallel" value="8"/>
<config name="minimum_wp_version" value="7.0"/>
<config name="testVersion" value="8.3-8.5"/>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress.Security"/>
<rule ref="WordPress.DB"/>
<rule ref="WordPress.WP.DeprecatedFunctions"/>
<rule ref="WordPress.WP.DeprecatedParameters"/>
<rule ref="WordPress.WP.GlobalVariablesOverride"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="libresign-wp-customizations"/>
<element value="woocommerce"/>
</property>
</properties>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions"/>
<rule ref="WordPress.PHP.NoSilencedErrors"/>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="libresign"/>
<element value="LIBRESIGN"/>
</property>
</properties>
<!-- The test suite sets core globals, fires core hooks and defines the
constants the WordPress test bootstrap expects. -->
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.ForbiddenFunctions"/>
<rule ref="Squiz.PHP.NonExecutableCode"/>
</ruleset>