-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
64 lines (51 loc) · 2.06 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0"?>
<ruleset name="Pronamic Client">
<file>.</file>
<exclude-pattern>adminer/adminer.php</exclude-pattern>
<exclude-pattern>build/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>wordpress/*</exclude-pattern>
<rule ref="PronamicWP">
<exclude name="Squiz.Commenting" />
<exclude name="WordPress.WP.EnqueuedResourceParameters.NotInFooter" />
<exclude name="WordPress.WP.EnqueuedResourceParameters.MissingVersion" />
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped" />
<exclude name="WordPress.Security.EscapeOutput.UnsafePrintingFunction" />
<exclude name="WordPressVIPMinimum.Hooks.RestrictedHooks.http_request_args" />
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_unlink" />
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.wp_mail_wp_mail" />
<exclude name="WordPressVIPMinimum.Performance.FetchingRemoteData.FileGetContentsUnknown" />
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="pronamic-client" />
</property>
</properties>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="pronamic_client" />
</property>
</properties>
</rule>
<rule ref="WordPress.Utils.I18nTextDomainFixer">
<properties>
<property name="old_text_domain" type="array">
<element value="pronamic_client" />
</property>
<property name="new_text_domain" value="pronamic-client" />
</properties>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode">
<exclude-pattern>adminer/index.php</exclude-pattern>
</rule>
<rule ref="Universal.WhiteSpace.PrecisionAlignment.Found">
<exclude-pattern>templates/google-analytics-tracking-code.php</exclude-pattern>
</rule>
<rule ref="WordPressVIPMinimum.Security.PHPFilterFunctions.RestrictedFilter">
<exclude-pattern>classes/Admin.php</exclude-pattern>
</rule>
</ruleset>