forked from humanmade/network-media-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
41 lines (32 loc) · 1.39 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="Network_Media_Library">
<config name="installed_paths" value="../../wp-coding-standards/wpcs,../../phpcompatibility/php-compatibility,../../automattic/phpcs-neutron-standard" />
<config name="testVersion" value="7.0-"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/features/*</exclude-pattern>
<!-- Include the PHP version compatibility standard. -->
<rule ref="PHPCompatibility"/>
<rule ref="WordPress-Extra">
<exclude name="WordPress.Files.FileName" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
</rule>
<rule ref="NeutronStandard">
<exclude name="NeutronStandard.AssignAlign.DisallowAssignAlign.Aligned" />
<exclude name="NeutronStandard.Functions.TypeHint.NoArgumentType" />
<exclude name="NeutronStandard.Functions.TypeHint.NoReturnType" />
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="4.9" />
</properties>
</rule>
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="-/."/>
</properties>
</rule>
</ruleset>