forked from google/site-kit-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
43 lines (32 loc) · 1.13 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
<?xml version="1.0"?>
<ruleset name="Site Kit by Google Project Rules">
<rule ref="WordPress-VIP-Go" />
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra">
<!-- Forget about file names -->
<exclude name="WordPress.Files.FileName"/>
</rule>
<!-- Use correct textdomain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="google-site-kit" />
</properties>
</rule>
<!-- Show details about violated sniffs -->
<arg value="s"/>
<!-- Iterate over all PHP files by default -->
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>*/phpunit.xml*</exclude-pattern>
<exclude-pattern>*/languages/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Third-party code -->
<exclude-pattern>*/bower-components/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/third-party/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Check for cross-version support for PHP 5.4 and higher. -->
<config name="testVersion" value="5.4-"/>
<rule ref="PHPCompatibility" />
</ruleset>