-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
82 lines (71 loc) · 2.75 KB
/
phpcs.xml.dist
File metadata and controls
82 lines (71 loc) · 2.75 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
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
<ruleset name="DuckDev WP Queue Process">
<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-"/>
<!-- Apply the full WordPress standard. -->
<rule ref="WordPress">
<!-- PSR-4 file/folder layout — class files are PascalCase, not class-foo.php. -->
<exclude name="WordPress.Files.FileName"/>
<!-- PSR-4 class names — no class-foo.php prefix requirement. -->
<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"/>
<!-- Direct DB access is the whole point of the queue store; it is prepared + uncached by design. -->
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
</rule>
<!-- The health-check interval is filterable, so the sniff can't read it statically. -->
<rule ref="WordPress.WP.CronInterval">
<exclude-pattern>src/Task.php</exclude-pattern>
</rule>
<!-- PHP compatibility (7.4+). -->
<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.DB.SlowDBQuery">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<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>