forked from CardanoPress/cardanopress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
34 lines (29 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
31
32
33
34
<?xml version="1.0"?>
<ruleset name="CardanoPress">
<!-- Set a description for this ruleset. -->
<description>The code standard rules for CardanoPress.</description>
<!-- Strip the file paths down to the relevant bit. -->
<arg name="basepath" value="./" />
<!-- A comma separated list of file extensions to check. -->
<arg name="extensions" value="php" />
<!-- Show sniff and progress. -->
<arg value="sp" />
<!-- Enables parallel processing when available for faster results. -->
<arg name="parallel" value="8" />
<!-- Scan with colors. -->
<arg name="colors" />
<!-- What to scan. -->
<file>.</file>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/</exclude-pattern>
<!-- Include PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-" />
<!-- Include minimum supported WP version. -->
<config name="minimum_supported_wp_version" value="5.9" />
<!-- Include PHP Compatibility Coding Standard. -->
<rule ref="PHPCompatibility" />
<rule ref="PSR12" />
<rule ref="PSR1.Methods.CamelCapsMethodName">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>