-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
63 lines (48 loc) · 2.36 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<ruleset name="Geniem"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>A custom set of rules to check styles for a Geniem WP projects</description>
<file>.</file>
<rule ref="./Geniem/ruleset.xml"/>
<!-- Exclude Composer vendor directory. -->
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="50"/>
<!-- Check code for cross-version PHP compatibility. -->
<config name="testVersion" value="7.3-"/>
<!-- Don't check Plugins, we might not have option (or resources) to fix them -->
<exclude-pattern>*/mu-plugins/*</exclude-pattern>
<exclude-pattern>*/plugins/*</exclude-pattern>
<!-- db-error.php and object-cache.php, not ours. -->
<exclude-pattern>*/db-error.php</exclude-pattern>
<exclude-pattern>*/object-cache.php</exclude-pattern>
<!-- Tests might have unusual notations which we can't check -->
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Skip seed data -->
<exclude-pattern>*/data/*</exclude-pattern>
<!-- Skip phinx seeds/migrations -->
<exclude-pattern>db/seeds/</exclude-pattern>
<exclude-pattern>db/migrations/</exclude-pattern>
<!-- Exclude wp core files -->
<exclude-pattern>/wp/wp-admin/*</exclude-pattern>
<exclude-pattern>/wp/wp-includes/*</exclude-pattern>
<exclude-pattern>/wp/wp-*.php</exclude-pattern>
<exclude-pattern>/wp/index.php</exclude-pattern>
<exclude-pattern>/wp/xmlrpc.php</exclude-pattern>
<exclude-pattern>/wp/</exclude-pattern>
<!-- This is from roots/bedrock and keep it as is -->
<exclude-pattern>/mu-plugins/bedrock-autoloader.php</exclude-pattern>
<!-- Exclude object cache -->
<exclude-pattern>/app/object-cache.php</exclude-pattern>
<!-- Exclude whoops debugger loaded by composer -->
<exclude-pattern>/mu-plugins/wps/*.php</exclude-pattern>
<!--
Skip our custom wordpress install.php drop-in.
This contains sql queries from the basic wp example and for good reason.
-->
<exclude-pattern>app/install.php</exclude-pattern>
</ruleset>