-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
44 lines (32 loc) · 1.62 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
38
39
40
41
42
43
44
<?xml version="1.0"?>
<ruleset name="IndigoTree">
<description>Indigo Tree coding standards</description>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>wp-content/platform/vendor/*</exclude-pattern>
<rule ref="PHPCompatibility" />
<rule ref="WordPress-VIP-Go" />
<!-- Single statement on same line. -->
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
<!-- Namespacing required for classes. -->
<rule ref="PSR1.Classes.ClassDeclaration" />
<!-- Namespacing required for functions. -->
<rule ref="PSR2.Namespaces.NamespaceDeclaration" />
<!-- Namespacing of `use` statements. -->
<rule ref="PSR2.Namespaces.UseDeclaration">
<exclude name="PSR2.Namespaces.UseDeclaration.MultipleDeclarations" />
</rule>
<rule ref="PSR2R.Namespaces.UnusedUseStatement" />
<!-- Ban inline assignment in control structures. -->
<rule ref="PSR2R.ControlStructures.NoInlineAssignment" />
<rule ref="WordPress.WP">
<!-- Use parse_url(), file_get_contents(), json_encode() -->
<exclude name="WordPress.WP.AlternativeFunctions.parse_url_parse_url"/>
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents"/>
<exclude name="WordPress.WP.AlternativeFunctions.json_encode_json_encode"/>
<!-- Remove Automattic VIP opinionated rules. -->
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.custom_role_add_role"/>
<!-- Prevent duplicate messages + deprecation notice from deprecated sniff. -->
<exclude name="WordPress.WP.TimezoneChange.timezone_change_date_default_timezone_set"/>
<exclude name="WordPress.WP.TimezoneChange.DeprecatedSniff"/>
</rule>
</ruleset>