-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
35 lines (30 loc) · 1.38 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
<?xml version="1.0"?>
<ruleset>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<!-- Directories to be checked -->
<file>src</file>
<file>tests</file>
<!-- Include full Doctrine Coding Standard -->
<rule ref="Doctrine">
<!-- disable checks for space after negation -->
<exclude name="Generic.Formatting.SpaceAfterNot"/>
<!-- disable check for property type hints -->
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingPropertyTypeHint"/>
</rule>
<!-- Drop the severity of write-only properties as these are often used in events which are only serialised. -->
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements.WriteOnlyProperty">
<type>warning</type>
</rule>
<!-- Remove unnecessary doc blocks because it removes blocks containing annotations. This can break controllers
etc if it goes unnoticed. -->
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment"/>
</rule>
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing">
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
</rule>
</ruleset>