-
Notifications
You must be signed in to change notification settings - Fork 41
/
phpcs.xml
34 lines (30 loc) · 1.08 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
<?xml version="1.0"?>
<ruleset name="Event Tickets Coding Standards">
<rule ref="StellarWP"/>
<rule ref="WordPress-VIP-Go"/>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!--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>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Enforce our specific plugin's text domain. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="event-tickets" />
</properties>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude the common directory -->
<exclude-pattern>*/common/*</exclude-pattern>
</ruleset>