-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
30 lines (25 loc) · 1011 Bytes
/
phpcs.xml.dist
File metadata and controls
30 lines (25 loc) · 1011 Bytes
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
<?xml version="1.0"?>
<ruleset name="Plum Tree Systems PHP standards">
<description>Coding standard based on PSR12 with some additions.</description>
<!-- Apply only for src and folders -->
<file>./src</file>
<file>./Tests</file>
<exclude-pattern>./src/Migrations</exclude-pattern>
<exclude-pattern>./lib</exclude-pattern>
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12">
<exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
<exclude name="Generic.Files.LineEndings" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<!-- Include PTS rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found">
<type>warning</type>
</rule>
<rule ref="PSR12.ControlStructures.BooleanOperatorPlacement">
<properties>
<property name="allowOnly" value="first" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>
</ruleset>