Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
69 lines (61 loc) · 2 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
69 lines (61 loc) · 2 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="SMTP">
<description>Coding standards for the SMTP plugin.</description>
<file>.</file>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<arg value="ps"/>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<config name="minimum_wp_version" value="6.3"/>
<config name="testVersion" value="7.4-"/>
<rule ref="WordPress">
<!-- PSR-4 class files are named after the class. -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<rule ref="PHPCompatibilityWP"/>
<!-- Test files do not need docblocks, and may query the database directly. -->
<rule ref="Squiz.Commenting.ClassComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.VariableComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput.ExceptionNotEscaped">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="smtp"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="wp_smtp"/>
<element value="WP_SMTP"/>
<element value="smtp"/>
<element value="WordPress\SMTP"/>
</property>
</properties>
</rule>
</ruleset>