-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathphpcs.xml.dist
44 lines (40 loc) · 1.67 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset
name="Coding standard"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<!-- Ignore warnings, show progress of the run, show sniff name -->
<arg value="nps"/>
<rule ref="Doctrine">
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
<exclude name="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion.RequiredConstructorPropertyPromotion"/>
</rule>
<!-- inherit rules from: -->
<rule ref="Generic.Files.LineLength">
<severity>0</severity>
</rule>
<!-- Project rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Protung\EasyAdminPlusBundle"/>
<element key="tests" value="Protung\EasyAdminPlusBundle\Tests"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit">
<properties>
<property name="ignoreStandaloneIfInScope" value="true"/>
<property name="ignoreOneLineTrailingIf" value="true"/>
<property name="ignoreTrailingIfWithOneInstruction" value="true"/>
</properties>
</rule>
<!-- Paths to check -->
<file>src</file>
<file>tests</file>
</ruleset>