-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
50 lines (43 loc) · 1.86 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
50 lines (43 loc) · 1.86 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
<?xml version="1.0"?>
<!-- PHPCS ruleset for the Cloudflare Stream plugin (PHP only). -->
<ruleset name="CloudflareStream">
<description>WordPress Coding Standards for Cloudflare Stream plugin (PHP only).</description>
<file>.</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/dist/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/tests/fixtures/*</exclude-pattern>
<exclude-pattern>*/tests/phpunit/*</exclude-pattern>
<exclude-pattern>*/tests/smoke/*</exclude-pattern>
<exclude-pattern>*/tests/mu-plugins/*</exclude-pattern>
<exclude-pattern>*/tests/bootstrap\.php</exclude-pattern>
<exclude-pattern>*/tests/_output/*</exclude-pattern>
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>*/plans/*</exclude-pattern>
<exclude-pattern>*/ref/*</exclude-pattern>
<exclude-pattern>\.wp-env\.json</exclude-pattern>
<exclude-pattern>\.wp-env\.override\.json</exclude-pattern>
<arg name="extensions" value="php"/>
<arg value="sp"/>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="parallel" value="8"/>
<rule ref="WordPress">
<!-- Relax filename rules for existing class layout -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
</rule>
<!-- Allow short array syntax -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<severity>0</severity>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="cloudflare-stream"/>
</property>
</properties>
</rule>
<config name="minimum_supported_wp" value="6.9"/>
</ruleset>