-
Notifications
You must be signed in to change notification settings - Fork 9
/
ruleset.xml
44 lines (35 loc) · 1.94 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
<?xml version="1.0"?>
<ruleset name="Joomla-CMS">
<description>The Joomla CMS PSR-12 exceptions.</description>
<!-- Exclude folders not containing production code -->
<!-- Exclude 3rd party libraries and Framework code. -->
<exclude-pattern type="relative">^administrator/components/com_jed/vendor/*</exclude-pattern>
<exclude-pattern type="relative">^administrator/components/com_jed/layouts/*</exclude-pattern>
<exclude-pattern type="relative">^libraries/*</exclude-pattern>
<exclude-pattern type="relative">RoboFile\.php</exclude-pattern>
<rule ref="PSR12" />
<!-- temporary extend the line length -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="560"/>
<property name="absoluteLineLimit" value="560"/>
</properties>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern type="relative">src/administrator/components/com_jed/script\.php</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern type="relative">src/components/com_jed/src/Model/CategoriesModel\.php</exclude-pattern>
<exclude-pattern type="relative">src/administrator/components/com_jed/src/Model/ExtensionModel\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern type="relative">src/components/com_jed/src/Helper/JedHelper\.php</exclude-pattern>
<exclude-pattern type="relative">src/administrator/components/com_jed/script\.php</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern type="relative">src/administrator/components/com_jed/src/Table/*\.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName">
<exclude-pattern type="relative">src/administrator/components/com_jed/script\.php</exclude-pattern>
</rule>
</ruleset>