-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
66 lines (58 loc) · 2.37 KB
/
phpcs.xml.dist
File metadata and controls
66 lines (58 loc) · 2.37 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd"
name="Wonolog"
>
<!-- Report warnings, but return zero exit code. -->
<config name="ignore_warnings_on_exit" value="1" />
<!-- Check for cross-version support for PHP 8.1 and higher. -->
<config name="testVersion" value="8.1-" />
<file>./inc</file>
<file>./src</file>
<file>./tests</file>
<!-- Use colors, and show sniff error codes and progress. -->
<arg name="colors" />
<arg value="sp" />
<rule ref="Syde-Extra" />
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Inpsyde\Wonolog" />
<element key="tests/integration" value="Inpsyde\Wonolog\Tests\Integration" />
<element key="tests/src" value="Inpsyde\Wonolog\Tests" />
<element key="tests/unit" value="Inpsyde\Wonolog\Tests\Unit" />
</property>
</properties>
</rule>
<rule ref="WordPress.Security.EscapeOutput.ExceptionNotEscaped">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.Eval.Discouraged">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Syde.Functions.FunctionLength">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.NoSilencedErrors">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ForbiddenPublicProperty">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>/tests/stubs/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<exclude-pattern>/tests/stubs/*</exclude-pattern>
</rule>
</ruleset>