-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
29 lines (29 loc) · 1.13 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
29 lines (29 loc) · 1.13 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
<?xml version="1.0"?>
<ruleset>
<!-- Use colors, and show sniff error codes and progress. -->
<arg name="colors"/>
<arg value="sp"/>
<!-- Recommended Syde PHP Coding Standard rules. -->
<rule ref="Syde-Extra">
<exclude name="Syde.Functions.FunctionBodyStart.WrongForMultiLineDeclaration" />
</rule>
<!-- Do not report on function length for tests. -->
<rule ref="Syde.Functions.FunctionLength">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!-- PSR-4 namespace configuration. -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Syde\WpPhpUnitIntegration"/>
<element key="tests/phpunit/src" value="Syde\WpPhpUnitIntegration\Tests"/>
<element key="tests/phpunit/Unit" value="Syde\WpPhpUnitIntegration\Tests\Unit"/>
<element key="tests/phpunit/Functional" value="Syde\WpPhpUnitIntegration\Tests\Functional"/>
</property>
</properties>
</rule>
<exclude-pattern>*/vendor/*</exclude-pattern>
<file>./inc</file>
<file>./src</file>
<file>./tests</file>
</ruleset>