forked from OXID-eSales/coding_standards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
70 lines (57 loc) · 2.62 KB
/
ruleset.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0"?>
<ruleset name="Oxid">
<description>OXID coding standards.</description>
<!-- Ignore patterns -->
<exclude-pattern>*/core/3rd_party_licenses/*</exclude-pattern>
<exclude-pattern>*/core/adodblite/*</exclude-pattern>
<exclude-pattern>*/core/application/views/*</exclude-pattern>
<exclude-pattern>*/core/facebook/*</exclude-pattern>
<exclude-pattern>*/core/jpgraph/*</exclude-pattern>
<exclude-pattern>*/core/oxfunctions.php*</exclude-pattern>
<exclude-pattern>*/core/phpdtaus/*</exclude-pattern>
<exclude-pattern>*/core/phpmailer/*</exclude-pattern>
<exclude-pattern>*/core/smarty/*</exclude-pattern>
<exclude-pattern>*/core/tcpdf/*</exclude-pattern>
<exclude-pattern>*/core/wysiwigpro/*</exclude-pattern>
<exclude-pattern>*/out/*</exclude-pattern>
<exclude-pattern>*/setup/tpl/*</exclude-pattern>
<exclude-pattern>*/tmp[^/]*/*</exclude-pattern>
<!-- Include specific sniffs from the other standards. -->
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
<rule ref="PEAR.Commenting.InlineComment"/>
<rule ref="PEAR.Files.IncludingFile"/>
<rule ref="Zend.NamingConventions.ValidVariableName" />
<!-- Set specific rules for certain sniffs. -->
<rule ref="Zend.NamingConventions.ValidVariableName.NotCamelCaps">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.MemberVarContainsNumbers">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.ContainsNumbers">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.StringVarContainsNumbers">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<exclude-pattern>core/oxconfig.php</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PSR2">
<exclude name="Squiz.Classes.ValidClassName"/>
<exclude name="Generic.NamingConventions.CamelCapsFunctionName"/>
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Classes.ClassDeclaration"/><!--namespaces are not used yet-->
<exclude name="PSR1.Files.SideEffects"/><!--separation of logic is not used yet-->
</rule>
</ruleset>