-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
45 lines (39 loc) · 1.71 KB
/
phpcs.xml.dist
File metadata and controls
45 lines (39 loc) · 1.71 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
<?xml version="1.0"?>
<ruleset
name="PHPCS Coding Standards for Respect/Config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<arg name="basepath" value="." />
<arg name="cache" value=".phpcs.cache" />
<arg name="colors" />
<arg name="extensions" value="php" />
<arg value="p" />
<arg value="s" />
<file>src/</file>
<file>tests/</file>
<rule ref="Respect" />
<!-- Instantiator dynamically invokes methods with loosely-typed INI data;
strict_types conflicts with call_user_func coercion requirements -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing">
<exclude-pattern>src/Instantiator.php</exclude-pattern>
</rule>
<!-- @var class-string narrowing for PHPStan on dynamic class names from INI -->
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable">
<exclude-pattern>src/</exclude-pattern>
</rule>
<!-- Test files contain inline fixture classes required by the DI container tests -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName.NotPascalCase">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<!-- Test fixture properties use snake_case to match INI config keys -->
<rule ref="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps">
<exclude-pattern>tests/</exclude-pattern>
</rule>
</ruleset>