-
Notifications
You must be signed in to change notification settings - Fork 1
/
.phpcs.xml.dist
32 lines (27 loc) · 1.27 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
<?xml version="1.0"?>
<ruleset name="40Q theme">
<description>40Q PHPCS extended.</description>
<!-- Scan these directories -->
<file>./includes/</file>
<file>./resources/views/</file>
<file>./partials/</file>
<!-- Don't scan these directories -->
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>public/</exclude-pattern>
<!-- How to scan -->
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/> <!-- Show results with colors. Disable if working on Windows -->
<arg name="basepath" value="."/> <!-- Strip the file paths down to the relevant bit -->
<arg name="parallel" value="8"/> <!-- Enables parallel processing when available for faster results -->
<arg name="extensions" value="php,js"/> <!-- Limit to PHP and JS files -->
<!-- For help in understanding this testVersion:
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="8.1-"/>
<!-- Rules: VIP Coding Standards - see
https://github.com/Automattic/VIP-Coding-Standards -->
<rule ref="WordPress-VIP-Go">
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
</rule>
</ruleset>