forked from XOOPS/XoopsCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
35 lines (26 loc) · 947 Bytes
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="PSR2-XOOPS">
<description>A modified PSR2 standard that loosens some rules for XoopsCore</description>
<!-- Include the whole PSR-2 standard -->
<rule ref="PSR2">
<!--
- Exclude mandatory namespace
- Exclude only one class per file
-->
<exclude name="PSR1.Classes.ClassDeclaration"/>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ClassFileName.NoMatch">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<!--
- Exclude camel caps methods - e.g. Controller::Form()
-->
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
<!--
- Excludes camel caps classes - e.g. Page_Controller
-->
<exclude name="Squiz.Classes.ValidClassName"/>
</rule>
</ruleset>