-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathphpcs.xml
More file actions
33 lines (28 loc) · 989 Bytes
/
Copy pathphpcs.xml
File metadata and controls
33 lines (28 loc) · 989 Bytes
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
<?xml version="1.0"?>
<ruleset name="FakerPress Coding Standards">
<file>src/</file>
<file>fakerpress.php</file>
<arg name="extensions" value="php"/>
<rule ref="WordPress-VIP-Go">
<exclude name="WordPressVIPMinimum.JS"/>
<exclude name="Generic.Debug.JSHint"/>
</rule>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
</rule>
<rule ref="StellarWP"/>
<!--exclude the rule for violation of direct DB calls as some have no alternative-->
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude-pattern>src/Test.php</exclude-pattern>
</rule>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- We always want short array syntax only. -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
</ruleset>