-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
53 lines (43 loc) · 2.16 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="LF" 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>
<file>./web/wp-content/themes/</file>
<file>./web/wp-content/mu-plugins/custom/</file>
<file>./web/wp-content/plugins/buttons-with-expiry/</file>
<file>./web/wp-content/plugins/core-block-customisations/</file>
<file>./web/wp-content/plugins/countdown-block/</file>
<file>./web/wp-content/plugins/custom-iframe/</file>
<file>./web/wp-content/plugins/icon-list/</file>
<file>./web/wp-content/plugins/image-box/</file>
<file>./web/wp-content/plugins/live-stream-gate-block/</file>
<file>./web/wp-content/plugins/pricing-block/</file>
<file>./web/wp-content/plugins/speakers-block/</file>
<file>./web/wp-content/plugins/speakers-block-2/</file>
<file>./web/wp-content/plugins/sponsors-dynamic-block/</file>
<file>./web/wp-content/plugins/tab-container-block/</file>
<file>./web/wp-content/plugins/text-on-image-block/</file>
<file>./web/wp-content/plugins/track-grid/</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/dist/*</exclude-pattern>
<exclude-pattern>*/uploads/*</exclude-pattern>
<exclude-pattern>*/plugins/*</exclude-pattern>
<exclude-pattern>*/scripts/*</exclude-pattern>
<exclude-pattern>*gulpfile*</exclude-pattern>
<exclude-pattern>*pantheon*</exclude-pattern>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<!-- Exclude CSS files. -->
<exclude-pattern>*.css</exclude-pattern>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<rule ref="WordPress"/>
</ruleset>