WordPress.org

Make WordPress Core

Ticket #41057: phpcs.xml.dist

File phpcs.xml.dist, 2.2 KB (added by pento, 2 months 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        <rule ref="WordPress.Arrays.ArrayIndentation">
15                <exclude-pattern>*</exclude-pattern>
16        </rule>
17
18        <exclude-pattern>/build/*</exclude-pattern>
19        <exclude-pattern>/node_modules/*</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/*</exclude-pattern>
49    <exclude-pattern>/tools/*</exclude-pattern>
50</ruleset>