-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpcs.xml
44 lines (37 loc) · 1.41 KB
/
phpcs.xml
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
<?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>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.Security.NonceVerification.Missing"/>
<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>
<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>