forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.xml.dist
43 lines (36 loc) · 1.33 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
<?xml version="1.0"?>
<ruleset>
<!-- Load configuration. -->
<rule ref="./.phpcs.config.xml" />
<!-- Default ruleset. -->
<rule ref="Jetpack" />
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
<!-- Template files use extracted variables. -->
<exclude-pattern>/projects/plugins/jetpack/extensions/blocks/podcast-player/templates/*</exclude-pattern>
</rule>
<!-- Can't be more specific pending the request https://github.com/WordPress/WordPress-Coding-Standards/issues/1650. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<!-- Core Jetpack -->
<element value="jetpack"/>
<!-- Jetpack Beta plugin -->
<element value="jetpack-beta"/>
<!-- Jetpack Standalone Plugins -->
<element value="jetpack-backup"/>
<element value="jetpack-boost"/>
<element value="jetpack-search"/>
</property>
</properties>
</rule>
<rule ref="WordPress.Utils.I18nTextDomainFixer">
<properties>
<property name="old_text_domain" type="array" />
<property name="new_text_domain" value="jetpack" />
</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>