-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
30 lines (23 loc) · 1.11 KB
/
phpcs.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
<?xml version="1.0"?>
<ruleset name="CardanoPress Bootstrap">
<!-- Set a description for this ruleset. -->
<description>The code standard rules for CardanoPress Bootstrap.</description>
<!-- A comma separated list of file extensions to check. -->
<arg name="extensions" value="php" />
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/</exclude-pattern>
<!-- Include the WordPress ruleset. -->
<rule ref="WordPress-Extra"/>
<!-- Exclude for common WordPress core constructor patterns -->
<rule ref="PEAR.Functions.FunctionCallSignature">
<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
</rule>
<!-- Include PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-" />
<!-- Include PHP Compatibility Coding Standard for WordPress. -->
<rule ref="PHPCompatibilityWP" />
<!-- Include minimum supported WP version -->
<config name="minimum_supported_wp_version" value="5.9" />
</ruleset>