-
-
Notifications
You must be signed in to change notification settings - Fork 189
/
phpcs.xml.dist
49 lines (40 loc) · 2.76 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
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
name="OcramiusProxyManager"
>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="colors"/>
<!-- Ignore warnings and show progress of the run -->
<arg value="np"/>
<file>./src</file>
<file>./tests/language-feature-scripts</file>
<file>./tests/ProxyManagerBench</file>
<file>./tests/ProxyManagerTest</file>
<rule ref="Doctrine">
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix"/>
<!-- we cannot enforce the " : void" return type hint due to BC compliance, for now -->
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint"/>
<!-- use statements also affect @psalm-* type declarations, and cannot therefore be dropped -->
<exclude name="SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse"/>
<!-- enforced types are now declared via psalm's "totallyTyped" restrictions -->
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
<!-- correct type declarations are coming from psalm, not from phpcs -->
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint"/>
<!-- spaces after reference markers are wished and endorsed -->
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterReference"/>
<!-- sometimes, we need to declare `/** @var type $var */` to declare a by-ref variable type - phpcs can't understand it -->
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.NoAssignment"/>
<!-- There isn't an `assert(...)` equivalent replacement of `/** @var class-string $foo */` due to side-effects of `class_exists()` -->
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
<!-- `@param callable (?A, B) : C` is incorrectly recognized as nullable parameter in the first position of a callable -->
<exclude name="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition.NullTypeHintNotOnLastPosition"/>
<!-- due to BC on interfaces, some `: void` return type signatures are omitted by design -->
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"/>
</rule>
</ruleset>