-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs-php-compatibility.xml
More file actions
26 lines (23 loc) · 1.08 KB
/
phpcs-php-compatibility.xml
File metadata and controls
26 lines (23 loc) · 1.08 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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="StellarWP Harbor" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<description>The custom ruleset for the StellarWP Harbor plugin, especially for PHP Compatibility</description>
<file>.</file>
<!-- General exclusions -->
<exclude-pattern>*/docs/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/phpstan-cache/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<!-- Formats of the report -->
<arg name="report" value="full,summary,source"/>
<!-- Show results with colors -->
<arg name="colors"/>
<!-- Enables cache -->
<arg name="cache"/>
<!-- Limit to PHP files -->
<arg name="extensions" value="php"/>
<rule ref="PHPCompatibilityWP">
<!-- 'resource' is a soft reserved keyword since PHP 7.0, but renaming the Resource class would be a breaking change. -->
<exclude name="PHPCompatibility.Keywords.ForbiddenNamesAsDeclared.resourceFound"/>
</rule>
</ruleset>