-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathphpcs.xml.dist
29 lines (24 loc) · 895 Bytes
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="PasswordBcrypt">
<description>PSR12 with PHP 8.0+ compatibility</description>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<!-- PHP compatibility takes precedent over PSR12 -->
<rule ref="PHPCompatibility">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="PSR12"/>
<!-- Support for PHP 8.0+ -->
<config name="testVersion" value="8.0-"/>
<file>wp-password-bcrypt.php</file>
<file>tests</file>
<!-- We should be cognizant of long lines, but handle it case-by-case -->
<rule ref="Generic.Files.LineLength.TooLong">
<severity>1</severity>
</rule>
<!-- I like to use snake_case for test names -->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
</ruleset>