forked from dongilbert/jstats-server
/
ruleset.xml
52 lines (43 loc) · 1.79 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
<?xml version="1.0"?>
<ruleset name="Joomla">
<arg name="report" value="full"/>
<arg name="tab-width" value="4"/>
<arg name="encoding" value="utf-8"/>
<arg value="sp"/>
<arg name="colors" />
<!-- Exclude folders not containing production code -->
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/cache/*</exclude-pattern>
<exclude-pattern>*/etc/*</exclude-pattern>
<exclude-pattern>*/logs/*</exclude-pattern>
<exclude-pattern>*/snapshots/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/versions/*</exclude-pattern>
<!-- Exclude 3rd party libraries. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude non-PHP files -->
<exclude-pattern>*/Gruntfile.js</exclude-pattern>
<file>./bin</file>
<file>./src</file>
<file>./tests</file>
<file>./www</file>
<rule ref="Joomla">
<exclude name="Joomla.Commenting.ClassComment.MissingSinceTag"/>
<exclude name="Joomla.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
<exclude name="Joomla.NamingConventions.ValidVariableName.NotCamelCaps"/>
<exclude name="Joomla.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<rule ref="Joomla.Classes.InstantiateNewClasses">
<properties>
<property name="shortArraySyntax" value="true"/>
</properties>
</rule>
<rule ref="Joomla.Commenting.FileComment.MissingPackageTag">
<exclude-pattern>bin/stats</exclude-pattern>
<exclude-pattern>www/index.php</exclude-pattern>
</rule>
<rule ref="Joomla.Commenting.FunctionComment.MissingReturn">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>