-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
28 lines (24 loc) · 1.19 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
<?xml version="1.0"?>
<ruleset name="Zemit">
<description>Zemit Coding Standards</description>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Use PSR-2 with some changes -->
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
<exclude name="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed"/>
<exclude name="PSR2.ControlStructures.ControlStructureSpacing"/>
<exclude name="Squiz.ControlStructures.ElseIfDeclaration.NotAllowed"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen"/>
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine"/>
</rule>
<file>src</file>
<exclude-pattern>private/*</exclude-pattern>
<exclude-pattern>resources/*</exclude-pattern>
<exclude-pattern>public/*</exclude-pattern>
<exclude-pattern>**vendor**</exclude-pattern>
</ruleset>