-
Notifications
You must be signed in to change notification settings - Fork 3
/
ruleset.xml
66 lines (54 loc) · 3.36 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
<?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">^vendor/*</exclude-pattern>
<exclude-pattern type="relative">^src/administrator/components/com_volunteers/layouts/*</exclude-pattern>
<exclude-pattern type="relative">^src/administrator/components/com_volunteers/tmpl/*</exclude-pattern>
<exclude-pattern type="relative">^src/components/com_volunteers/tmpl/*</exclude-pattern>
<exclude-pattern type="relative">^dist/*</exclude-pattern>
<exclude-pattern type="relative">^libraries/*</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.Files.SideEffects">
<exclude-pattern type="relative">build/lib/phpStormSourceHandling\.php</exclude-pattern>
<exclude-pattern type="relative">RoboFile\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern type="relative">build/lib/phpStormSourceHandling\.php</exclude-pattern>
<exclude-pattern type="relative">build/lib/ZipmeFileSet\.php</exclude-pattern>
<exclude-pattern type="relative">build/tasks/AutoversionTask\.php</exclude-pattern>
<exclude-pattern type="relative">build/tasks/PhpStormSources\.php</exclude-pattern>
<exclude-pattern type="relative">build/tasks/RelinkSiteTask\.php</exclude-pattern>
<exclude-pattern type="relative">build/tasks/XmlVersionTask\.php</exclude-pattern>
<exclude-pattern type="relative">build/tasks/ZipmeTask\.php</exclude-pattern>
<exclude-pattern type="relative">administrator/components/com_volunteers/script\.php</exclude-pattern>
<exclude-pattern type="relative">plugins/*</exclude-pattern>
<exclude-pattern type="relative">RoboFile\.php</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern type="relative">src/components/com_volunteers/src/Model/CategoriesModel\.php</exclude-pattern>
<exclude-pattern type="relative">src/administrator/components/com_volunteers/src/Model/ExtensionModel\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern type="relative">build/linklib/LinkHelper\.php</exclude-pattern>
<exclude-pattern type="relative">src/components/com_volunteer/src/Helper/JedHelper\.php</exclude-pattern>
<exclude-pattern type="relative">administrator/components/com_volunteers/script\.php</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern type="relative">src/administrator/components/com_volunteers/src/Table/*\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern type="relative">build/tasks/ZipmeTask\.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName">
<exclude-pattern type="relative">administrator/components/com_volunteers/script\.php</exclude-pattern>
</rule>
</ruleset>