Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
60 lines (51 loc) · 1.87 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
60 lines (51 loc) · 1.87 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="StackFolio">
<description>Coding standards for StackFolio.</description>
<file>.</file>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/assets/vendor/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<arg name="parallel" value="8"/>
<arg name="cache" value=".phpcs.cache"/>
<!-- Minimum versions: keep in sync with the plugin header and readme.txt. -->
<config name="testVersion" value="7.4-"/>
<config name="minimum_wp_version" value="6.3"/>
<rule ref="WordPress"/>
<!-- tests/ use PSR-4 file names; block.json's index.asset.php is a WordPress convention. -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/blocks/*/index.asset.php</exclude-pattern>
</rule>
<!-- Test method names describe the test; no doc comment needed. -->
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<!-- An "Example: <name>" marker above a test method is not its doc comment. -->
<rule ref="Squiz.Commenting.FunctionComment.WrongStyle">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>/tests/bootstrap.php</exclude-pattern>
</rule>
<rule ref="PHPCompatibilityWP"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="stackfolio"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>/tests/*</exclude-pattern>
<properties>
<property name="prefixes" type="array">
<element value="stackfolio"/>
<element value="StackFolio"/>
</property>
</properties>
</rule>
</ruleset>