-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
41 lines (34 loc) · 1.42 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
41 lines (34 loc) · 1.42 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
<?xml version="1.0"?>
<ruleset name="Newspack Nodes">
<description>PHP Coding Standards for the Newspack Nodes runtime plugin.</description>
<!-- Scan plugin source -->
<file>./includes</file>
<file>./examples</file>
<file>./newspack-nodes.php</file>
<file>./newspack-nodes-config.php</file>
<!-- Exclude build, vendor, and dependency directories. Tests are excluded
because they create fixture directories under /tmp/, set $_SERVER
values, and inject memory streams — all flagged by VIP-Go's
pet rules even when intentional and harmless. -->
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/.phpstan/cache/*</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<!-- Rules: WordPress VIP Go Coding Standards -->
<rule ref="WordPress-VIP-Go">
<!-- Exclude JS sniffs that cause PHPCS 4.0 deprecation warnings -->
<exclude name="WordPressVIPMinimum.JS"/>
</rule>
<!-- Text domain for translations -->
<config name="text_domain" value="newspack-nodes"/>
<!-- Allow short array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- WordPress version check -->
<config name="minimum_supported_wp_version" value="6.0"/>
</ruleset>