-
Notifications
You must be signed in to change notification settings - Fork 23
/
phpcs.xml
42 lines (34 loc) · 1.21 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
<?xml version="1.0"?>
<ruleset name="Syde Coding Standard">
<description>PHP 7.4+ coding standards for Syde WordPress projects.</description>
<file>Inpsyde</file>
<file>InpsydeTemplates</file>
<file>./tests/src</file>
<file>./tests/unit/cases</file>
<file>./tests/e2e/cases</file>
<!--
PHP 7.4 and higher.
-->
<config name="testVersion" value="7.4-"/>
<!--
Arguments: colors, show progress and show sniff name.
-->
<arg name="colors"/>
<arg value="sp"/>
<rule ref="Inpsyde">
<exclude name="WordPress.Security"/>
</rule>
<rule ref="Inpsyde.CodeQuality.FunctionLength">
<exclude-pattern>./tests/unit/cases/</exclude-pattern>
</rule>
<rule ref="Inpsyde.CodeQuality.Psr4">
<exclude-pattern>./Inpsyde/Sniffs/</exclude-pattern>
<exclude-pattern>./InpsydeTemplates/Sniffs/</exclude-pattern>
<properties>
<property name="psr4" type="array">
<element key="Inpsyde\CodingStandard\Helpers" value="Inpsyde/Helpers"/>
<element key="Inpsyde\CodingStandard\Tests" value="tests/src|tests/unit/cases|tests/e2e/cases"/>
</property>
</properties>
</rule>
</ruleset>