forked from joomla/jissues
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
41 lines (34 loc) · 1.63 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
<?xml version="1.0"?>
<ruleset name="Joomla">
<description>The Joomla Issue tracker PSR-12 exceptions.</description>
<!-- Exclude folders not containing production code -->
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/cache/*</exclude-pattern>
<exclude-pattern>*/Documentation/*</exclude-pattern>
<exclude-pattern>*/etc/*</exclude-pattern>
<exclude-pattern>*/logs/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/www/*</exclude-pattern>
<!-- Exclude 3rd party libraries. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude non-PHP files -->
<exclude-pattern>*/Gruntfile.js</exclude-pattern>
<!-- Exclude tracker.php because of strange error -->
<!--<exclude-pattern>*/src/App/Support/Model/IconsModel.php</exclude-pattern>-->
<exclude-pattern>*/tests/bootstrap.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="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern type="relative">src/JTracker/Model/AbstractTrackerListModel\.php</exclude-pattern>
<exclude-pattern type="relative">src/App/Tracker/Model/IssuesModel\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern type="relative">src/App/Projects/TrackerProject\.php</exclude-pattern>
</rule>
</ruleset>