WordPress.org

Make WordPress Core

Ticket #41057: phpcs.xml.5.dist

File phpcs.xml.5.dist, 2.5 KB (added by netweb, 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
7        <arg name="extensions" value="php" />
8
9        <!-- Show sniff codes in all reports -->
10        <arg value="s" />
11
12        <file>.</file>
13
14        <!-- Unknown bug -->
15        <exclude-pattern>/tests/phpunit/tests/functions/wpListUtil.php</exclude-pattern>
16        <exclude-pattern>/tests/phpunit/tests/walker.php</exclude-pattern>
17
18        <!-- Directories and third party library exclusions -->
19        <exclude-pattern>/build/*</exclude-pattern>
20        <exclude-pattern>/node_modules/*</exclude-pattern>
21
22        <exclude-pattern>/src/wp-content/plugins/*</exclude-pattern>
23
24        <exclude-pattern>/src/wp-admin/includes/class-ftp*</exclude-pattern>
25        <exclude-pattern>/src/wp-admin/includes/class-pclzip.php</exclude-pattern>
26        <exclude-pattern>/src/wp-admin/includes/deprecated.php</exclude-pattern>
27        <exclude-pattern>/src/wp-admin/includes/ms-deprecated.php</exclude-pattern>
28
29        <exclude-pattern>/src/wp-includes/atomlib.php</exclude-pattern>
30        <exclude-pattern>/src/wp-includes/class-IXR.php</exclude-pattern>
31        <exclude-pattern>/src/wp-includes/class-json.php</exclude-pattern>
32        <exclude-pattern>/src/wp-includes/class-phpass.php</exclude-pattern>
33        <exclude-pattern>/src/wp-includes/class-phpmailer.php</exclude-pattern>
34        <exclude-pattern>/src/wp-includes/class-pop3.php</exclude-pattern>
35        <exclude-pattern>/src/wp-includes/class-requests.php</exclude-pattern>
36        <exclude-pattern>/src/wp-includes/class-simplepie.php</exclude-pattern>
37        <exclude-pattern>/src/wp-includes/class-smtp.php</exclude-pattern>
38        <exclude-pattern>/src/wp-includes/class-snoopy.php</exclude-pattern>
39        <exclude-pattern>/src/wp-includes/deprecated.php</exclude-pattern>
40        <exclude-pattern>/src/wp-includes/ms-deprecated.php</exclude-pattern>
41        <exclude-pattern>/src/wp-includes/pluggable-deprecated.php</exclude-pattern>
42        <exclude-pattern>/src/wp-includes/rss.php</exclude-pattern>
43
44        <exclude-pattern>/src/wp-includes/ID3/*</exclude-pattern>
45        <exclude-pattern>/src/wp-includes/IXR/*</exclude-pattern>
46        <exclude-pattern>/src/wp-includes/random_compat/*</exclude-pattern>
47        <exclude-pattern>/src/wp-includes/Requests/*</exclude-pattern>
48        <exclude-pattern>/src/wp-includes/SimplePie/*</exclude-pattern>
49        <exclude-pattern>/src/wp-includes/Text/*</exclude-pattern>
50
51        <exclude-pattern>/tests/phpunit/build*</exclude-pattern>
52        <exclude-pattern>/tests/phpunit/data/plugins/wordpress-importer*</exclude-pattern>
53        <exclude-pattern>/tests/phpunit/data/.trac-ticket-cache*</exclude-pattern>
54</ruleset>