-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml.dist
29 lines (21 loc) · 875 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="tfrommen">
<description>PHP Coding Standards</description>
<!-- Set the PHP version to use for PHP_CodeSniffer to PHP 8.0. -->
<config name="php_version" value="80000" />
<!-- Set a minimum PHP version for PHPCompatibility. -->
<config name="testVersion" value="7.4-" />
<!-- Show sniff codes in all reports. -->
<arg value="s" />
<!-- Check PHP files only. -->
<arg name="extensions" value="php" />
<!-- Exclude external libraries and builds. -->
<exclude-pattern>/vendor/</exclude-pattern>
<!-- Exclude folders that don't contain PHP code. -->
<exclude-pattern>/.github/</exclude-pattern>
<exclude-pattern>/.wordpress-org/</exclude-pattern>
<!-- Check for PHP cross-version compatibility. -->
<rule ref="PHPCompatibilityWP" />
<!-- Use the Human Made coding standards. -->
<rule ref="HM-Minimum" />
</ruleset>