forked from joomla/coding-standards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
58 lines (53 loc) · 2.29 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
<?xml version="1.0"?>
<ruleset name="Joomla">
<description>The Joomla coding standard.</description>
<!-- Include all sniffs in an external standard directory -->
<!-- Include some additional sniffs from the Generic standard -->
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
<rule ref="Generic.Files.EndFileNewline" />
<!-- Use Unix newlines -->
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n" />
</properties>
</rule>
<!-- Lines can be 85 chars long, but never show errors -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="150" />
<property name="absoluteLineLimit" value="0" />
</properties>
</rule>
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
<!-- This message is not required as spaces are allowed for alignment -->
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
<severity>0</severity>
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
<rule ref="Generic.PHP.DisallowShortOpenTag" />
<rule ref="Generic.PHP.DeprecatedFunctions" />
<rule ref="Generic.PHP.ForbiddenFunctions" />
<!-- Include some additional sniffs from the PEAR standard -->
<rule ref="PEAR.Classes.ClassDeclaration" />
<rule ref="PEAR.Commenting.InlineComment" />
<rule ref="PEAR.Formatting.MultiLineAssignment" />
<rule ref="PEAR.Functions.ValidDefaultValue" />
<rule ref="PEAR.NamingConventions.ValidClassName" />
<!-- Include some additional sniffs from the Squiz standard -->
<rule ref="Squiz.CSS.ColonSpacing" />
<rule ref="Squiz.CSS.DuplicateClassDefinition" />
<rule ref="Squiz.CSS.EmptyClassDefinition" />
<rule ref="Squiz.CSS.EmptyStyleDefinition" />
<rule ref="Squiz.CSS.MissingColon" />
<rule ref="Squiz.CSS.SemicolonSpacing" />
<rule ref="Squiz.Classes.SelfMemberReference" />
<rule ref="Squiz.Commenting.DocCommentAlignment" />
<rule ref="Squiz.Operators.IncrementDecrementUsage">
<exclude name="Squiz.Operators.IncrementDecrementUsage.processAssignment" />
</rule>
<rule ref="Squiz.Scope.StaticThisUsage" />
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace" />
<!-- Include some additional sniffs from the Zend standard -->
<rule ref="Zend.Files.ClosingTag" />
</ruleset>