-
Notifications
You must be signed in to change notification settings - Fork 800
/
.phpcs.xml.dist
49 lines (43 loc) · 1.59 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
<?xml version="1.0"?>
<ruleset>
<!-- Load configuration. -->
<rule ref="./.phpcs.config.xml" />
<!-- Default ruleset. -->
<rule ref="Jetpack" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<!-- Dummy entry, projects should override this in .phpcs.dir.xml. -->
<element value="no text domain is set in this in this project's .phpcs.dir.xml"/>
</property>
</properties>
</rule>
<rule ref="Jetpack.Functions.I18n">
<properties>
<property name="text_domain" value="no text domain is set in this in this project's .phpcs.dir.xml" />
</properties>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="jetpack_activate_modules" />
<element value="jetpack_admin_page" />
<element value="jetpack_configure_modules" />
<element value="jetpack_connect" />
<element value="jetpack_connect_user" />
<element value="jetpack_deactivate_modules" />
<element value="jetpack_disconnect" />
<element value="jetpack_manage_modules" />
<element value="jetpack_network_admin_page" />
<element value="jetpack_network_settings_page" />
<element value="jetpack_network_sites_page" />
<element value="jetpack_reconnect" />
<element value="view_stats" />
</property>
</properties>
</rule>
<!-- WordPress-Extra pulls this in. But PHP linting can be run more efficiently via bin/parallel-lint.sh than by having phpcs shell out to `php -l`. -->
<rule ref="Generic.PHP.Syntax">
<exclude name="Generic.PHP.Syntax" />
</rule>
</ruleset>