-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
69 lines (59 loc) · 2.27 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
69 lines (59 loc) · 2.27 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
61
62
63
64
65
66
67
68
69
<?xml version="1.0"?>
<ruleset name="FoxeLabs WP Review Notice">
<description>WordPress coding standards adapted for a PSR-4 library.</description>
<file>src</file>
<file>tests</file>
<arg name="basepath" value="."/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg value="sp"/>
<arg name="parallel" value="8"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>tests/Stubs/*</exclude-pattern>
<config name="minimum_supported_wp_version" value="6.0"/>
<config name="testVersion" value="7.4-"/>
<rule ref="WordPress">
<!-- PSR-4 file/folder layout — class files are PascalCase, not class-foo.php. -->
<exclude name="WordPress.Files.FileName"/>
<!-- Library exposes camelCase method names by design. -->
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
<!-- Library has no text domain; host plugins translate. -->
<exclude name="WordPress.WP.I18n.TextDomainMismatch"/>
<exclude name="WordPress.WP.I18n.MissingArgDomain"/>
<!-- Renderer intentionally echoes pre-built HTML (see DefaultRenderer docblock). -->
<exclude name="WordPress.Security.EscapeOutput"/>
</rule>
<rule ref="PHPCompatibilityWP"/>
<!-- Tests can use looser conventions. -->
<rule ref="WordPress.NamingConventions.ValidFunctionName">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Files.OneObjectStructurePerFile">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.CodeAnalysis.EmptyStatement">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.VariableComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>