-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs.ws-psr2.xml
28 lines (23 loc) · 1.09 KB
/
.php-cs.ws-psr2.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="ws-PSR2">
<description>PSR-2, but without line length check.</description>
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength" />
<exclude name="PSR2.Files.ClosingTag.NotAllowed" />
<exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine" />
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed" />
<exclude name="PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE" />
<!-- <exclude name="PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonCASE" /> -->
<!-- <exclude name="PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonDEFAULT" /> -->
<!-- <exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore" /> -->
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace" />
</rule>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array" value="print=>echo,die=>exit" />
</properties>
</rule>
</ruleset>