forked from phpDocumentor/guides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
41 lines (31 loc) · 1.39 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
<?xml version="1.0"?>
<ruleset name="guides">
<description>The coding standard for phpDocumentor guides.</description>
<file>packages</file>
<file>tests</file>
<config name="php_version" value="80100"/>
<exclude-pattern>packages/*/examples/*</exclude-pattern>
<exclude-pattern>tests/*/_*</exclude-pattern>
<arg value="nps"/>
<rule ref="Doctrine">
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
<exclude name="Squiz.Commenting.FunctionComment"/>
</rule>
<rule ref="Generic.Formatting.SpaceAfterNot">
<properties>
<property name="spacing" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.NoAssignment">
<exclude-pattern>packages/guides/src/Setup/QuickStart.php</exclude-pattern>
</rule>
<rule ref="PSR2">
<include-pattern>*\.php</include-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*/tests/*/*.php</exclude-pattern>
</rule>
</ruleset>