Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
60 lines (46 loc) · 1.73 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
60 lines (46 loc) · 1.73 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
<?xml version="1.0"?>
<ruleset name="GiftFlow Plugin">
<arg name="extensions" value="php"/>
<description>PHP CodeSniffer configuration for GiftFlow WordPress plugin</description>
<arg name="colors"/>
<arg value="sp"/>
<config name="minimum_supported_wp_version" value="6.0"/>
<config name="testVersion" value="7.4-8.3"/>
<!-- Include WordPress Coding Standards -->
<rule ref="WordPress" />
<rule ref="WordPress-Core" />
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
<!-- Disable alignment / cosmetic spacing -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<severity>0</severity>
</rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment">
<severity>0</severity>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.SpacingAfterParamType">
<severity>0</severity>
</rule>
<!-- Disable WordPress filename rules — project uses PSR-4 autoloading -->
<rule ref="WordPress.Files.FileName">
<severity>0</severity>
</rule>
<!-- Include main plugin file -->
<file>giftflow.php</file>
<!-- Include plugin directories -->
<file>admin</file>
<file>includes</file>
<file>blocks</file>
<file>templates</file>
<!-- Exclude vendor dependencies -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>vendor-prefixed/*</exclude-pattern>
<!-- Exclude node modules -->
<exclude-pattern>node_modules/*</exclude-pattern>
<!-- Exclude built/compiled files -->
<exclude-pattern>blocks-build/*</exclude-pattern>
<exclude-pattern>assets/js/*.bundle.*</exclude-pattern>
<exclude-pattern>assets/css/*.bundle.*</exclude-pattern>
<!-- Exclude language files (if any PHP files exist there) -->
<exclude-pattern>languages/*</exclude-pattern>
</ruleset>