-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathphpcs-compatibility.xml
More file actions
37 lines (27 loc) · 1.38 KB
/
Copy pathphpcs-compatibility.xml
File metadata and controls
37 lines (27 loc) · 1.38 KB
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
<?xml version="1.0"?>
<ruleset name="ScriptlogPHPCompatibility">
<description>Check PHP cross-version compatibility for Scriptlog (PHP 7.4+)</description>
<!-- Run against PHPCompatibility standard -->
<rule ref="PHPCompatibility"/>
<!-- Set target PHP version range -->
<config name="testVersion" value="7.4-"/>
<!-- Exclude vendor directory -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude admin assets -->
<exclude-pattern>*/admin/assets/*</exclude-pattern>
<!-- Exclude theme assets -->
<exclude-pattern>*/themes/blog/assets/*</exclude-pattern>
<!-- Exclude HTMLPurifier (third-party) -->
<exclude-pattern>*/lib/core/HTMLPurifier/*</exclude-pattern>
<!-- Exclude third-party utility files -->
<exclude-pattern>*/lib/utility/htmlawed.php</exclude-pattern>
<!-- Exclude mysqli helper (standalone fallback) -->
<exclude-pattern>*/lib/utility/db-mysqli.php</exclude-pattern>
<!-- Exclude test files -->
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Exclude empty / HTML-only PHP files (no PHP code to scan) -->
<exclude-pattern>*/admin/plugins/index.php</exclude-pattern>
<exclude-pattern>*/admin/option-sitemap.php</exclude-pattern>
<exclude-pattern>*/public/themes/restoblog/functions.php</exclude-pattern>
<exclude-pattern>*/public/themes/restoblog/home.php</exclude-pattern>
</ruleset>