-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml
46 lines (38 loc) · 1.37 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
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<ruleset name="WP-Tests-Strapon">
<rule ref="PHPCompatibility">
</rule>
<config name="testVersion" value="8.2-"/>
<!-- Enforce strict type decleration at top of all PHP files -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="spacesCountAroundEqualsSign" value="0" />
<property name="linesCountBeforeDeclare" value="1" />
<property name="linesCountAfterDeclare" value="1" />
</properties>
</rule>
<!-- Enforce type hinting for function parameters -->
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
</rule>
<!-- Enforce type hinting for function return values -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
</rule>
<!-- Disallow "sloppy" equals operators -->
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
</rule>
<!--
Exclude the vendor direcotry because of course
-->
<exclude-pattern>./vendor/*</exclude-pattern>
<!--
Excluding commenting rules from tests, as we are using TestDox instead
-->
<rule ref="Squiz.Commenting.ClassComment.Missing">
<exclude-pattern>./tests/**</exclude-pattern>
<exclude-pattern>./supressors/**</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<exclude-pattern>./tests/**</exclude-pattern>
<exclude-pattern>./supressors/**</exclude-pattern>
</rule>
</ruleset>