-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
39 lines (34 loc) · 1.17 KB
/
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
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
<file>./src/</file>
<file>./tests/</file>
<arg value="sp"/>
<config name="testVersion" value="8.3-"/>
<rule ref="Inpsyde">
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped" />
</rule>
<rule ref="Inpsyde.CodeQuality.Psr4">
<properties>
<property
name="psr4"
type="array"
value="Toobo=>src,Toobo\Tests=>tests/unit|tests/src"
/>
</properties>
</rule>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<properties>
<property type="integer" name="complexity" value="18"/>
<property type="integer" name="absoluteComplexity" value="25"/>
</properties>
</rule>
<rule ref="Inpsyde.CodeQuality.FunctionLength">
<exclude-pattern>./tests/</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>./tests/boot.php</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_putenv">
<exclude-pattern>./tests/boot.php</exclude-pattern>
</rule>
</ruleset>