-
Notifications
You must be signed in to change notification settings - Fork 10
/
phpcs.xml
33 lines (26 loc) · 1.09 KB
/
phpcs.xml
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
<?xml version="1.0"?>
<ruleset>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value="temp/.phpcs-cache"/>
<arg name="colors"/>
<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>
<file>app</file>
<file>tests</file>
<file>migrations</file>
<exclude-pattern>tests/_*</exclude-pattern>
<rule ref="Doctrine">
<!-- Only because of ParticipantTrait that should be gone in future -->
<exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/>
<!-- We have no use for it as PHP 7.4 will bring short closures, so we wan't to keep those as short as possible -->
<exclude name="SlevomatCodingStandard.Functions.StaticClosure"/>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
</ruleset>