-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
44 lines (34 loc) · 1.4 KB
/
phpcs.xml
File metadata and controls
44 lines (34 loc) · 1.4 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
<?xml version="1.0"?>
<ruleset name="WordPress Marketplace Module">
<description>PHP CodeSniffer configuration for WordPress Marketplace Module</description>
<!-- Check all PHP files in backend directory -->
<file>./backend</file>
<!-- Exclude vendor directory -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Use WordPress Coding Standards -->
<rule ref="WordPress">
<!-- Allow short array syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Use PSR-4 naming conventions for classes -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false"/>
</properties>
</rule>
<!-- Check for PHP cross-version compatibility -->
<config name="testVersion" value="7.4-"/>
<!-- Allow short array syntax [] instead of array() -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Show progress and use colors -->
<arg value="ps"/>
<arg name="colors"/>
<!-- Show sniff codes in all reports -->
<arg value="ns"/>
<!-- Enable caching for faster subsequent runs -->
<arg name="cache" value=".phpcs-cache"/>
<!-- Set memory limit -->
<ini name="memory_limit" value="256M"/>
</ruleset>