-
-
Notifications
You must be signed in to change notification settings - Fork 264
/
.phpcs.xml
executable file
·52 lines (45 loc) · 1.66 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
45
46
47
48
49
50
51
52
<?xml version="1.0"?>
<ruleset name="Pods Coding Standards">
<exclude-pattern>*/\.github/*</exclude-pattern>
<exclude-pattern>*/\.wordpress-org/*</exclude-pattern>
<exclude-pattern>*/files/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/repo/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/cli/*</exclude-pattern>
<exclude-pattern>*/fields/*</exclude-pattern>
<exclude-pattern>*/widgets/*</exclude-pattern>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg name="report" value="full,summary"/>
<rule ref="StellarWP"/>
<rule ref="WordPress-VIP-Go"/>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
</rule>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="pods"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="pods"/>
</properties>
</rule>
<rule ref="WordPress.Files">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
<rule ref="Squiz.PHP">
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed"/>
<exclude name="Squiz.PHP.DisallowBooleanStatement.Found"/>
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedComparison"/>
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedBool"/>
</rule>
</ruleset>