WordPress.org

Make WordPress Core

Ticket #41057: phpcs6.xml.dist

File phpcs6.xml.dist, 2.4 KB (added by jrf, 3 weeks ago)
Line 
1<?xml version="1.0"?>
2<ruleset name="WordPress Coding Standards">
3        <description>Apply WordPress Coding Standards to all Core files</description>
4
5        <rule ref="WordPress-Core" />
6        <rule ref="WordPress.CodeAnalysis.EmptyStatement"/>
7
8        <arg name="extensions" value="php" />
9
10        <!-- Show sniff codes in all reports -->
11        <arg value="ps" />
12
13        <file>.</file>
14
15        <!-- Directories and third party library exclusions -->
16        <exclude-pattern>/build/*</exclude-pattern>
17        <exclude-pattern>/node_modules/*</exclude-pattern>
18
19        <exclude-pattern>/src/wp-content/plugins/*</exclude-pattern>
20
21        <exclude-pattern>/src/wp-admin/includes/class-ftp*</exclude-pattern>
22        <exclude-pattern>/src/wp-admin/includes/class-pclzip.php</exclude-pattern>
23        <exclude-pattern>/src/wp-admin/includes/deprecated.php</exclude-pattern>
24        <exclude-pattern>/src/wp-admin/includes/ms-deprecated.php</exclude-pattern>
25
26        <exclude-pattern>/src/wp-includes/atomlib.php</exclude-pattern>
27        <exclude-pattern>/src/wp-includes/class-IXR.php</exclude-pattern>
28        <exclude-pattern>/src/wp-includes/class-json.php</exclude-pattern>
29        <exclude-pattern>/src/wp-includes/class-phpass.php</exclude-pattern>
30        <exclude-pattern>/src/wp-includes/class-phpmailer.php</exclude-pattern>
31        <exclude-pattern>/src/wp-includes/class-pop3.php</exclude-pattern>
32        <exclude-pattern>/src/wp-includes/class-requests.php</exclude-pattern>
33        <exclude-pattern>/src/wp-includes/class-simplepie.php</exclude-pattern>
34        <exclude-pattern>/src/wp-includes/class-smtp.php</exclude-pattern>
35        <exclude-pattern>/src/wp-includes/class-snoopy.php</exclude-pattern>
36        <exclude-pattern>/src/wp-includes/deprecated.php</exclude-pattern>
37        <exclude-pattern>/src/wp-includes/ms-deprecated.php</exclude-pattern>
38        <exclude-pattern>/src/wp-includes/pluggable-deprecated.php</exclude-pattern>
39        <exclude-pattern>/src/wp-includes/rss.php</exclude-pattern>
40
41        <exclude-pattern>/src/wp-includes/ID3/*</exclude-pattern>
42        <exclude-pattern>/src/wp-includes/IXR/*</exclude-pattern>
43        <exclude-pattern>/src/wp-includes/random_compat/*</exclude-pattern>
44        <exclude-pattern>/src/wp-includes/Requests/*</exclude-pattern>
45        <exclude-pattern>/src/wp-includes/SimplePie/*</exclude-pattern>
46        <exclude-pattern>/src/wp-includes/Text/*</exclude-pattern>
47
48        <exclude-pattern>/tests/phpunit/build*</exclude-pattern>
49        <exclude-pattern>/tests/phpunit/data/plugins/wordpress-importer*</exclude-pattern>
50        <exclude-pattern>/tests/phpunit/data/.trac-ticket-cache*</exclude-pattern>
51</ruleset>