-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpcs.xml.dist
56 lines (48 loc) · 1.98 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
47
48
49
50
51
52
53
54
55
56
<?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="Modularity"
>
<!-- Report warnings, but return zero exit code. -->
<config name="ignore_warnings_on_exit" value="1" />
<!-- Check for cross-version support for PHP 7.4 and higher. -->
<config name="testVersion" value="7.4-" />
<config name="php_version" value="70400" />
<file>./src</file>
<file>./tests</file>
<exclude-pattern>./tests/unit/stubs.php</exclude-pattern>
<!-- Use colors, and show sniff error codes and progress. -->
<arg name="colors" />
<arg value="sp" />
<rule ref="Syde-Extra">
<exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall.MissingTrailingComma" />
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>/tests/boot.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Inpsyde\Modularity" />
<element key="tests/src" value="Inpsyde\Modularity\Tests" />
<element key="tests/unit" value="Inpsyde\Modularity\Tests\Unit" />
</property>
</properties>
</rule>
<rule ref="Squiz.PHP.Eval">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Syde.Functions.FunctionLength.TooLong">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DevelopmentFunctions">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>