Make WordPress Core

Ticket #41057: phpcs.xml.7.dist

File phpcs.xml.7.dist, 2.3 KB (added by netweb, 7 years 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-admin/includes/class-ftp*</exclude-pattern>
20        <exclude-pattern>/src/wp-admin/includes/class-pclzip.php</exclude-pattern>
21        <exclude-pattern>/src/wp-admin/includes/deprecated.php</exclude-pattern>
22        <exclude-pattern>/src/wp-admin/includes/ms-deprecated.php</exclude-pattern>
23
24        <exclude-pattern>/src/wp-includes/atomlib.php</exclude-pattern>
25        <exclude-pattern>/src/wp-includes/class-IXR.php</exclude-pattern>
26        <exclude-pattern>/src/wp-includes/class-json.php</exclude-pattern>
27        <exclude-pattern>/src/wp-includes/class-phpass.php</exclude-pattern>
28        <exclude-pattern>/src/wp-includes/class-phpmailer.php</exclude-pattern>
29        <exclude-pattern>/src/wp-includes/class-pop3.php</exclude-pattern>
30        <exclude-pattern>/src/wp-includes/class-requests.php</exclude-pattern>
31        <exclude-pattern>/src/wp-includes/class-simplepie.php</exclude-pattern>
32        <exclude-pattern>/src/wp-includes/class-smtp.php</exclude-pattern>
33        <exclude-pattern>/src/wp-includes/class-snoopy.php</exclude-pattern>
34        <exclude-pattern>/src/wp-includes/deprecated.php</exclude-pattern>
35        <exclude-pattern>/src/wp-includes/ms-deprecated.php</exclude-pattern>
36        <exclude-pattern>/src/wp-includes/pluggable-deprecated.php</exclude-pattern>
37        <exclude-pattern>/src/wp-includes/rss.php</exclude-pattern>
38
39        <exclude-pattern>/src/wp-includes/ID3/*</exclude-pattern>
40        <exclude-pattern>/src/wp-includes/IXR/*</exclude-pattern>
41        <exclude-pattern>/src/wp-includes/random_compat/*</exclude-pattern>
42        <exclude-pattern>/src/wp-includes/Requests/*</exclude-pattern>
43        <exclude-pattern>/src/wp-includes/SimplePie/*</exclude-pattern>
44        <exclude-pattern>/src/wp-includes/Text/*</exclude-pattern>
45
46        <exclude-pattern>/tests/phpunit/build*</exclude-pattern>
47        <exclude-pattern>/tests/phpunit/data/plugins/wordpress-importer*</exclude-pattern>
48        <exclude-pattern>/tests/phpunit/data/.trac-ticket-cache*</exclude-pattern>
49</ruleset>