-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcompatibility.xml
34 lines (25 loc) · 1.23 KB
/
phpcompatibility.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
<?xml version="1.0"?>
<ruleset name="DELTA-PHPCompatibility">
<description>A custom set of rules based on PHPCompatibility</description>
<!-- Only scan PHP files. -->
<arg name="extensions" value="php"/>
<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>
<config name="installed_paths" value="/misc/temp/phpcs/PHPCompatibility,/misc/temp/phpcs/PHPCSUtils,/misc/temp/phpcs/PHPCSExtra" />
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Check PHP syntax. -->
<rule ref="Generic.PHP.Syntax"/>
<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="7.0-99.0"/>
<rule ref="PHPCompatibility">
<!-- PHP 4.3 - Incorrect error. -->
<exclude name="PHPCompatibility.PHP.NewFunctionParameters.php_uname_modeFound"/>
<!-- PHP 8.1 - We don't care that the default flags for htmlspecialchars() has changed. Both defaults are acceptable. -->
<exclude name="PHPCompatibility.ParameterValues.NewHTMLEntitiesFlagsDefault.NotSet"/>
</rule>
</ruleset>