forked from elementor/elementor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
27 lines (23 loc) · 954 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="WordPress.Elementor">
<description>
Elementor Coding Standard
</description>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>build/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>includes/libraries/</exclude-pattern>
<exclude-pattern>tests/*.php</exclude-pattern>
<rule ref="WordPress-Core">
<exclude name="Generic.ControlStructures.InlineControlStructure" />
<exclude name="Squiz.Commenting.LongConditionClosingComment" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeKeyFound" />
</rule>
<!-- Extras -->
<rule ref="WordPress.PHP.DiscouragedFunctions" />
<!-- VIP -->
<rule ref="WordPress.Arrays.ArrayAssignmentRestrictions" />
<rule ref="WordPress.Functions.FunctionRestrictions" />
<rule ref="WordPress.Variables.VariableRestrictions" />
</ruleset>