Skip to content

Commit 77ac96e

Browse files
author
Vincent Langlet
committed
🔧 Explain Zend Standard
1 parent dcf33da commit 77ac96e

File tree

1 file changed

+16
-36
lines changed

1 file changed

+16
-36
lines changed

Symfony3Custom/ruleset.xml

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,10 @@
1313
<!-- Include the whole PSR-2 (so PSR-1) standard -->
1414
<rule ref="PSR2"/>
1515

16-
<!-- ************** -->
17-
<!-- *** ZEND *** -->
18-
<!-- ************** -->
19-
20-
<!-- Import Zend coding standard (which in turn imports PEAR) -->
21-
<rule ref="Zend">
22-
<!-- Exclude their code analyzer -->
23-
<exclude name="Zend.Debug.CodeAnalyzer"/>
24-
25-
<!-- Covered by Squiz ControlSignature -->
26-
<exclude name="PEAR.ControlStructures.ControlSignature"/>
27-
28-
<!-- Covered by PSR2 FunctionCallSignature -->
29-
<exclude name="PEAR.Functions.FunctionCallSignature"/>
30-
31-
<!-- Covered by Squiz FunctionDeclaration imported by PSR2 -->
32-
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/>
33-
</rule>
34-
35-
<!-- Don't enforce Zend's private member underscores -->
36-
<rule ref="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore">
37-
<severity>0</severity>
38-
</rule>
39-
40-
<!-- Ignore variables that contains numbers -->
41-
<rule ref="Zend.NamingConventions.ValidVariableName.ContainsNumbers">
42-
<severity>0</severity>
43-
</rule>
44-
4516
<!-- ****************** -->
4617
<!-- *** OVERRIDE *** -->
4718
<!-- ****************** -->
4819

49-
<!-- Override LineLength to avoid 80 character warning -->
50-
<rule ref="Generic.Files.LineLength">
51-
<properties>
52-
<property name="lineLimit" value="120"/>
53-
</properties>
54-
</rule>
55-
5620
<!-- Override SuperfluousWhitespace to not ignore blank lines -->
5721
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
5822
<properties>
@@ -61,6 +25,22 @@
6125
</rule>
6226
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
6327

28+
<!-- ************** -->
29+
<!-- *** ZEND *** -->
30+
<!-- ************** -->
31+
32+
<!-- Complete with some of ZEND standard -->
33+
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman">
34+
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/>
35+
</rule>
36+
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
37+
<rule ref="PEAR.Classes.ClassDeclaration"/>
38+
<rule ref="Squiz.Functions.GlobalFunction"/>
39+
<rule ref="Squiz.NamingConventions.ValidVariableName">
40+
<exclude name="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
41+
<exclude name="Squiz.NamingConventions.ValidVariableName.ContainsNumbers"/>
42+
</rule>
43+
6444
<!-- **************** -->
6545
<!-- *** OTHERS *** -->
6646
<!-- **************** -->

0 commit comments

Comments
 (0)