-
Notifications
You must be signed in to change notification settings - Fork 3
/
.phpcs.xml
61 lines (58 loc) · 3.15 KB
/
.phpcs.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
<?xml version="1.0"?>
<ruleset name="SWA">
<rule ref="./vendor/joomla/coding-standards/Joomla">
<!-- Commenting -->
<exclude name="Joomla.Commenting.FileComment.EmptyCopyrightTag"/>
<exclude name="Joomla.Commenting.FileComment.EmptyLicenseTag"/>
<exclude name="Joomla.Commenting.FileComment.Missing"/>
<exclude name="Joomla.Commenting.FileComment.MissingCopyrightTag"/>
<exclude name="Joomla.Commenting.FileComment.MissingLicenseTag"/>
<exclude name="Joomla.Commenting.FileComment.WrongStyle"/>
<exclude name="Joomla.Commenting.ClassComment.Missing"/>
<exclude name="Joomla.Commenting.ClassComment.MissingSinceTag"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
<exclude name="Joomla.Commenting.FunctionComment.Missing"/>
<exclude name="Joomla.Commenting.FunctionComment.MissingParamComment"/>
<exclude name="Joomla.Commenting.FunctionComment.MissingParamName"/>
<exclude name="Joomla.Commenting.FunctionComment.MissingParamTag"/>
<exclude name="Joomla.Commenting.FunctionComment.MissingReturn"/>
<exclude name="Joomla.Commenting.FunctionComment.BeforeParamType"/>
<exclude name="Joomla.Commenting.FunctionComment.WrongStyle"/>
<exclude name="Joomla.Commenting.SingleComment.BlankBefore"/>
<!-- Naming -->
<exclude name="Joomla.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
<exclude name="Joomla.NamingConventions.ValidVariableName.NotCamelCaps"/>
<!-- Spacing -->
<exclude name="Joomla.ControlStructures.ControlStructuresBrackets.SpaceBeforeBrace"/>
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.Indent"/>
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose"/>
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect"/>
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/>
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.SpacingAfterOpenBrace"/>
<exclude name="Joomla.ControlStructures.WhiteSpaceBefore.SpaceBefore"/>
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace"/>
<exclude name="Joomla.WhiteSpace.MemberVarSpacing.FirstMember"/>
<!-- Other Formatting -->
<exclude name="Joomla.ControlStructures.ControlStructuresBrackets.OpenBraceNewLine"/>
<exclude name="PEAR.Formatting.MultiLineAssignment.EqualSignLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.StartWithBoolean"/>
<!-- Other -->
<exclude name="Joomla.NamingConventions.ValidFunctionName.FunctionNameInvalid"/>
<exclude name="Joomla.NamingConventions.ValidVariableName.StringNotCamelCaps"/>
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="198" />
</properties>
</rule>
<file>.</file>
<exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>.build</exclude-pattern>
<exclude-pattern>.docker</exclude-pattern>
<exclude-pattern>src/site/libraries</exclude-pattern>
<exclude-pattern>src/templates</exclude-pattern>
</ruleset>