-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
36 lines (29 loc) · 1.24 KB
/
phpcs.xml.dist
File metadata and controls
36 lines (29 loc) · 1.24 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
<?xml version="1.0"?>
<ruleset name="LightSpeedWP">
<description>LightSpeed WP Coding Standards</description>
<!-- Scan all PHP files in the current directory and subdirectories -->
<file>./</file>
<!-- Exclude third-party dependencies -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<!-- Exclude build and temporary directories -->
<exclude-pattern>build/*</exclude-pattern>
<exclude-pattern>assets/dist/*</exclude-pattern>
<exclude-pattern>.tmp/*</exclude-pattern>
<exclude-pattern>.cache/*</exclude-pattern>
<!-- Exclude testing and development directories -->
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>test-results/*</exclude-pattern>
<exclude-pattern>playwright-report/*</exclude-pattern>
<exclude-pattern>coverage/*</exclude-pattern>
<exclude-pattern>bin/*</exclude-pattern>
<!-- Exclude WordPress development files -->
<exclude-pattern>wp-content/*</exclude-pattern>
<!-- Apply WordPress Coding Standards -->
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<!-- Check PHP compatibility -->
<rule ref="PHPCompatibilityWP"/>
<config name="testVersion" value="8.0-8.3"/>
</ruleset>