forked from devgeniem/better-wp-install-dropin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
47 lines (37 loc) · 1.48 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
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="install.php">
<description>Coding standards for install.php</description>
<file>.</file>
<arg name="basepath" value="./"/><!-- Strip the file paths down to the relevant bit -->
<!--
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
-->
<!-- Use figuren.theater Coding Standards -->
<rule ref="figurentheater" />
<!-- Allow functions without namespace
<rule ref="HM.Functions.NamespacedFunctions">
<exclude name="HM.Functions.NamespacedFunctions.MissingNamespace" />
</rule> -->
<!-- Allow i18n without text-domain
<rule ref="WordPress.WP.I18n">
<exclude name="WordPress.WP.I18n.MissingArgDomain" />
</rule> -->
<!-- Allow side-effects -->
<rule ref="PSR1.Files.SideEffects">
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
</rule>
<!-- Allow direct DB interaction -->
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
</rule>
<!-- Allow the usage of users/usermeta -->
<rule ref="WordPressVIPMinimum.Functions.RestrictedFunctions">
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.user_meta_update_user_meta" />
</rule>
<rule ref="WordPressVIPMinimum.Variables.RestrictedVariables">
<exclude name="WordPressVIPMinimum.Variables.RestrictedVariables.user_meta__wpdb__usermeta" />
</rule>
</ruleset>