Repository navigation
Expand file tree
/
Copy pathphpcs.xml
More file actions
55 lines (47 loc) · 1.84 KB
/
Copy pathphpcs.xml
File metadata and controls
55 lines (47 loc) · 1.84 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
<?xml version="1.0"?>
<ruleset name="W4dev WordPress Plugin">
<description>W4dev WordPress Plugin Ruleset.</description>
<!-- Exclude paths -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/vendor-dev/*</exclude-pattern>
<exclude-pattern>*/wp/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>languages/*</exclude-pattern>
<!-- Configs -->
<config name="minimum_supported_wp_version" value="4.7" />
<config name="testVersion" value="6.1.1-" />
<!-- Rules -->
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores"/>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>includes/*.php</exclude-pattern>
<exclude-pattern>admin/*.php</exclude-pattern>
</rule>
<!--
Legacy save/AJAX paths predate nonce usage; they are scheduled for a
proper nonce in the editor-validation milestone. New code must NOT be
added to this list - every new endpoint verifies a nonce.
-->
<rule ref="WordPress.Security.NonceVerification.Missing">
<exclude-pattern>admin/class-admin-lists-metaboxes\.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="w4-post-list"/>
</property>
</properties>
</rule>
<rule ref="Squiz.PHP">
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed"/>
<exclude name="Squiz.PHP.DisallowComparisonAssignment"/>
</rule>
<rule ref="Generic.Commenting.Todo">
<exclude name="Generic.Commenting.Todo.TaskFound"/>
<exclude name="Generic.Commenting.Todo.CommentFound"/>
</rule>
</ruleset>