forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpcs.config.xml
47 lines (36 loc) · 1.92 KB
/
.phpcs.config.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>
<config name="minimum_supported_wp_version" value="5.7" />
<config name="testVersion" value="5.6-"/>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<arg name="colors"/>
<!-- Ignore git, in case someone created a branch ending in ".php" or something -->
<exclude-pattern>/.git/*</exclude-pattern>
<!-- Ignore external libraries -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Ignore WordPress and such checked out for Docker -->
<exclude-pattern>/tools/docker/data/*</exclude-pattern>
<exclude-pattern>/tools/docker/mu-plugins/0-sandbox.php</exclude-pattern>
<exclude-pattern>/tools/docker/wordpress-develop/*</exclude-pattern>
<exclude-pattern>/tools/docker/wordpress/*</exclude-pattern>
<!-- Ignore WordPress included in packages -->
<exclude-pattern>/projects/packages/*/wordpress/*</exclude-pattern>
<!-- Ignore WordPress included in plugins -->
<exclude-pattern>/projects/plugins/*/wordpress/*</exclude-pattern>
<!-- Ignore built files -->
<exclude-pattern>/projects/packages/connection-ui/build/*</exclude-pattern>
<exclude-pattern>/projects/packages/identity-crisis/build/*</exclude-pattern>
<exclude-pattern>/projects/packages/lazy-images/dist/*</exclude-pattern>
<exclude-pattern>/projects/plugins/backup/build/*</exclude-pattern>
<exclude-pattern>/projects/plugins/jetpack/_inc/blocks/*</exclude-pattern>
<exclude-pattern>/projects/plugins/jetpack/_inc/build/*</exclude-pattern>
<exclude-pattern>/projects/plugins/jetpack/modules/module-headings.php</exclude-pattern>
<exclude-pattern>/projects/plugins/jetpack/modules/photon-cdn/jetpack-manifest.php</exclude-pattern>
<!-- Ignore test fixture files -->
<exclude-pattern>/projects/packages/assets/tests/php/test-assets-files/*</exclude-pattern>
</ruleset>