-
Notifications
You must be signed in to change notification settings - Fork 10
/
ruleset.xml
37 lines (33 loc) · 1.54 KB
/
ruleset.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
<?xml version="1.0"?>
<ruleset name="LaterPay">
<description>A custom set of rules to check for a LaterPay WordPress plugin</description>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="ignoreIndentationTokens" type="array" value="T_COMMENT,T_DOC_COMMENT"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>
<!-- https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#use-elseif-not-else-if -->
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
<arg name="extensions" value="php,js"/>
<rule ref="PHPCompatibilityWP"/>
<config name="testVersion" value="5.6-"/>
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned">
<severity>0</severity>
</rule>
<rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning">
<severity>0</severity>
</rule>
<rule ref="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeKeyFound">
<severity>0</severity>
</rule>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Usage is safe, and it's not executed on WordPress VIP Go Environment. -->
<rule ref="WordPressVIPMinimum.JS.HTMLExecutingFunctions.append">
<exclude-pattern>*/laterpay-migrate-data.js$</exclude-pattern>
<exclude-pattern>*/laterpay-wpengine-notice.js$</exclude-pattern>
</rule>
</ruleset>