-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
68 lines (56 loc) · 2.21 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
68 lines (56 loc) · 2.21 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="AiWA Mandinka Games" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd">
<description>Coding standards for the AiWA Mandinka Games WordPress plugin.</description>
<!-- Paths to check -->
<file>.</file>
<!-- Exclude WP Core and common ignored paths -->
<exclude-pattern>/docroot/wp-admin/*</exclude-pattern>
<exclude-pattern>/docroot/wp-includes/*</exclude-pattern>
<exclude-pattern>/docroot/wp-*.php</exclude-pattern>
<exclude-pattern>/docroot/index.php</exclude-pattern>
<exclude-pattern>/docroot/xmlrpc.php</exclude-pattern>
<exclude-pattern>/docroot/wp-content/plugins/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Base path normalization -->
<arg name="basepath" value="."/>
<!-- Run in parallel -->
<arg name="parallel" value="8"/>
<!-- Coding standards to include -->
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<rule ref="Generic.Commenting.Todo"/>
<!-- Optional: Enable if PHPCompatibilityWP is installed -->
<!--
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php</include-pattern>
</rule>
-->
<!-- Set WordPress version -->
<config name="minimum_wp_version" value="6.4"/>
<!-- Configure I18n text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="mandinka-games"/>
</property>
</properties>
</rule>
<!-- Prefix all globals with "aiwa" -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="mnkg"/>
</property>
</properties>
</rule>
<!-- Example of test-specific sniff exclusion -->
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude-pattern>/tests/*Test\.php</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName">
<exclude-pattern>/tests/*Test\.php</exclude-pattern>
</rule>
</ruleset>