-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
35 lines (28 loc) · 1.13 KB
/
phpcs.xml.dist
File metadata and controls
35 lines (28 loc) · 1.13 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
<?xml version="1.0"?>
<ruleset name="Presence API Coding Standards">
<description>WordPress Coding Standards for the Presence API plugin.</description>
<arg name="extensions" value="php"/>
<arg name="basepath" value="./"/>
<arg name="parallel" value="8"/>
<arg value="ps"/>
<!-- Scan plugin source files. -->
<file>presence-api.php</file>
<file>includes/</file>
<file>uninstall.php</file>
<!-- Exclude test and demo files from coding standards. -->
<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<!-- Use WordPress Coding Standards. -->
<rule ref="WordPress">
<!-- Allow short array syntax — common in modern WP development. -->
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>
<!-- Verify text domain. -->
<config name="text_domain" value="presence-api"/>
<!-- Set minimum supported WP version for deprecated function checks. -->
<config name="minimum_wp_version" value="7.0"/>
</ruleset>