-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
26 lines (22 loc) · 1.09 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
<?xml version="1.0"?>
<ruleset name="VirtualMenu">
<description>The coding standard for VirtualMenu</description>
<file>./www/application/</file>
<exclude-pattern>*/libraries/*</exclude-pattern>
<exclude-pattern>*/third_party/*</exclude-pattern>
<exclude-pattern>*/errors/*</exclude-pattern>
<exclude-pattern>./www/application/models/grocery_crud_model.php</exclude-pattern>
<exclude-pattern>*/language/*</exclude-pattern>
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength" />
<exclude name="Generic.Files.LineEndings" />
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
<!-- At the moment ignore this name rules since the code meets the CodeIgniter naming conventions -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
</rule>
<rule ref="Internal.NoCodeFound">
<!-- Exclude the views code from this rule since it's not compatible with html or JavaScript only files -->
<exclude-pattern>./www/application/views/*</exclude-pattern>
</rule>
</ruleset>