-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
46 lines (38 loc) · 1.59 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
40
41
42
43
44
45
46
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
name="PHP Coding Standard">
<description>PHP Coding Standard</description>
<arg name="basepath" value="."/>
<arg name="parallel" value="80"/>
<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>
<!-- The directories to apply the rules -->
<file>./app/</file>
<file>./tests/</file>
<!-- Show the warning but exit with 0. The Warning is fine -->
<config name="ignore_warnings_on_exit" value="1"/>
<!-- Check for cross-version support for PHP 7.4 or higher. Requires PHPCompatibility -->
<config name="testVersion" value="7.4-"/>
<!-- Include full Doctrine Coding Standard -->
<rule ref="Syntatis"/>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="app" value="Codex"/>
<element key="inc" value="Codex"/>
<element key="tests/app" value="Codex\Tests"/>
<element key="tests/phpunit" value="Codex\Tests"/>
</property>
</properties>
<exclude-pattern>/fixtures/</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
<exclude-pattern>/tests/</exclude-pattern>
</rule>
<!-- Enable PHPCompatibility ruleset to enable version compatibility test -->
<rule ref="PHPCompatibility"/>
<exclude-pattern>/cache/</exclude-pattern>
<exclude-pattern>/tests/phpunit/fixtures/</exclude-pattern>
</ruleset>