-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
124 lines (108 loc) · 5.5 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0"?>
<ruleset name="Custom Standard">
<arg name="colors"/>
<arg name="tab-width" value="4"/>
<!-- Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
-->
<arg value="ps"/>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="./"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<!-- Set which version of PHP for compatibility checking. -->
<config name="testVersion" value="7.4-"/>
<description>A custom set of code standard rules.</description>
<!-- Check all files in this directory and the directories below it. -->
<file>.</file>
<exclude-pattern>vendor</exclude-pattern>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="180"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman">
<properties>
<property name="checkFunctions" value="true" />
<property name="checkClosures" value="true" />
</properties>
</rule>
<rule ref="Generic">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="Generic.Classes.OpeningBraceSameLine.BraceOnNewLine"/>
<exclude name="Generic.Files.EndFileNoNewline.Found"/>
<exclude name="Generic.Files.LowercasedFilename.NotFound"/>
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
<exclude name="Generic.Formatting.SpaceAfterNot.Incorrect"/>
<exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine"/>
<exclude name="Generic.PHP.ClosingPHPTag.NotFound"/>
<exclude name="Generic.PHP.UpperCaseConstant.Found"/>
<exclude name="Generic.Strings.UnnecessaryStringConcat.Found"/>
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"/>
</rule>
<rule ref="PEAR">
<exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.FileComment.InvalidVersion"/>
<exclude name="PEAR.ControlStructures.ControlSignature.Found"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.CloseBracketNewLine"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.NewlineBeforeOpenBrace"/>
<exclude name="PEAR.ControlStructures.MultiLineCondition.StartWithBoolean"/>
<exclude name="PEAR.Formatting.MultiLineAssignment.EqualSignLine"/>
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PEAR.Functions.FunctionDeclaration.CloseBracketLine"/>
<exclude name="PEAR.Functions.FunctionDeclaration.NewlineBeforeOpenBrace"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
<exclude name="PEAR.WhiteSpace.ScopeIndent.IncorrectExact"/>
</rule>
<rule ref="PHPCompatibility">
</rule>
<rule ref="PSR1" />
<rule ref="PSR2">
<exclude name="PSR2.Methods.FunctionCallSignature.CloseBracketLine"/>
<exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
</rule>
<rule ref="PSR12">
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine"/>
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
</rule>
<rule ref="Squiz">
<exclude name="Squiz.Arrays.ArrayDeclaration.NoComma"/>
<exclude name="Squiz.Arrays.ArrayDeclaration.SingleLineNotAllowed"/>
<exclude name="Squiz.Commenting.ClosingDeclarationComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.IncorrectAuthor"/>
<exclude name="Squiz.Commenting.FileComment.IncorrectCopyright"/>
<exclude name="Squiz.Commenting.FileComment.MissingSubpackageTag"/>
<exclude name="Squiz.Commenting.FileComment.PackageTagOrder"/>
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen"/>
<exclude name="Squiz.Commenting.FileComment.SubpackageTagOrder"/>
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword"/>
<exclude name="Squiz.ControlStructures.ElseIfDeclaration.NotAllowed"/>
<exclude name="Squiz.ControlStructures.SwitchDeclaration.BreakIndent"/>
<exclude name="Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak"/>
<exclude name="Squiz.Files.FileExtension.ClassFound"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"/>
<exclude name="Squiz.Strings.ConcatenationSpacing.PaddingFound"/>
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
<exclude name="Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeClose"/>
<exclude name="Squiz.WhiteSpace.FunctionSpacing.After"/>
<exclude name="Squiz.WhiteSpace.FunctionSpacing.AfterLast"/>
<exclude name="Squiz.WhiteSpace.FunctionSpacing.Before"/>
<exclude name="Squiz.WhiteSpace.FunctionSpacing.BeforeFirst"/>
<exclude name="Squiz.WhiteSpace.MemberVarSpacing.FirstIncorrect"/>
<exclude name="Squiz.WhiteSpace.OperatorSpacing.SpacingAfter"/>
</rule>
<rule ref="Zend">
</rule>
</ruleset>