This repository was archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
45 lines (32 loc) · 1.55 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Example Project" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>A custom set of rules to check for a WPized WordPress project</description>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>./vendor/</exclude-pattern>
<exclude-pattern>./\wordpress/</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<rule ref="WordPress-Extra">
<!-- Exclude as we use a custom autoloader. -->
<exclude name="WordPress.Files.FileName"/>
<!-- Exclude as we need the error handler -->
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_set_error_handler"/>
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error"/>
<!-- Exclude as it conflict with @var declaration. -->
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
</rule>
<!-- Only parse php files. -->
<arg name="extensions" value="php"/>
<!-- Show sniff name in report. -->
<arg value="sp"/>
<!-- Show progress. -->
<arg value="p"/>
<!-- Use colors. -->
<arg name="colors"/>
<!-- Set ini. -->
<ini name="memory_limit" value="512M"/>
<ini name="max_execution_time" value="-1"/>
</ruleset>