22
22
<file >./TapAware.php</file >
23
23
<file >./TapObjectAware.php</file >
24
24
25
- <!-- Additional QubusPHP Coding Standard rules. -->
26
-
27
- <!-- File names should be lowercased and class names should be uppercase. -->
28
- <rule ref =" Generic.Files.LowercasedFilename" >
29
- <exclude name =" Generic.Files.LowercasedFilename.NotFound" />
30
- </rule >
31
- <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
32
- <exclude name =" SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName" />
33
- </rule >
34
-
35
- <!-- A cast statement MUST NOT be preceeded by a single space. -->
36
- <rule ref =" Generic.Formatting.SpaceBeforeCast" >
37
- <exclude name =" Generic.Formatting.SpaceBeforeCast.NoSpace" />
38
- </rule >
39
-
40
- <!-- The Short array syntax MUST be used-->
41
- <rule ref =" Generic.Arrays.DisallowShortArraySyntax" >
42
- <exclude name =" Generic.Arrays.DisallowShortArraySyntax.Found" />
43
- </rule >
44
-
45
- <!-- Opening brace must be on a new line. -->
46
- <rule ref =" Generic.Classes.OpeningBraceSameLine" >
47
- <exclude name =" Generic.Classes.OpeningBraceSameLine.BraceOnNewLine" />
48
- </rule >
49
-
50
- <!-- Opening brace should be on a new line after declaration. -->
51
- <rule ref =" Generic.Functions.OpeningFunctionBraceKernighanRitchie" >
52
- <exclude name =" Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine" />
53
- </rule >
54
-
55
- <!-- Constants true, false and null MUST be lowercase. -->
56
- <rule ref =" Generic.PHP.UpperCaseConstant" >
57
- <exclude name =" Generic.PHP.UpperCaseConstant.Found" />
58
- </rule >
59
- <rule ref =" Generic.PHP.LowerCaseConstant" />
60
-
61
- <!-- There MUST be at least one space on either side of an equals sign used
62
- to assign a value to a variable. In case of a block of related
63
- assignments, more spaces MUST NOT be inserted before the equal sign. -->
64
- <rule ref =" Generic.Formatting.MultipleStatementAlignment" >
65
- <exclude name =" Generic.Formatting.MultipleStatementAlignment.NotSame" />
66
- <properties >
67
- <property name =" error" value =" true" />
68
- <property name =" maxPadding" value =" 50" />
69
- </properties >
70
- </rule >
71
-
72
- <!-- Code MUST use an indent of 4 spaces for each indent level, and MUST
73
- NOT use tabs for indenting. If tabs are use, indent with 4 spaces. -->
74
- <rule ref =" Generic.WhiteSpace.ScopeIndent" >
75
- <properties >
76
- <property name =" indent" value =" 4" />
77
- <property name =" exact" value =" true" />
78
- <property name =" tabIndent" value =" true" />
79
- <property name =" --tab-width" value =" 4" />
80
- </properties >
81
- </rule >
82
- <rule ref =" Generic.WhiteSpace.DisallowSpaceIndent" >
83
- <exclude name =" Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
84
- </rule >
85
-
86
- <!-- Abstract classes MUST NOT have an `Abstract` prefix/suffix. -->
87
- <rule ref =" WebimpressCodingStandard.NamingConventions.AbstractClass" >
88
- <exclude name =" WebimpressCodingStandard.NamingConventions.AbstractClass.Prefix" />
89
- <exclude name =" WebimpressCodingStandard.NamingConventions.AbstractClass.Suffix" />
90
- </rule >
91
- <rule ref =" SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming" />
92
-
93
- <!-- Exception classes MUST have an `Exception` suffix. -->
94
- <rule ref =" SlevomatCodingStandard.Classes.SuperfluousExceptionNaming" >
95
- <exclude name =" SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix" />
96
- </rule >
97
- <rule ref =" WebimpressCodingStandard.NamingConventions.Exception" />
98
-
99
- <!-- Interface classes MUST NOT have an `Interface` prefix/suffix. -->
100
- <rule ref =" WebimpressCodingStandard.NamingConventions.Interface" >
101
- <exclude name =" WebimpressCodingStandard.NamingConventions.Interface.Prefix" />
102
- <exclude name =" WebimpressCodingStandard.NamingConventions.Interface.Suffix" />
103
- </rule >
104
- <rule ref =" SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming" />
105
-
106
- <!-- Trait classes MUST NOT have a `Trait` prefix/suffix. -->
107
- <rule ref =" WebimpressCodingStandard.NamingConventions.Trait" >
108
- <exclude name =" WebimpressCodingStandard.NamingConventions.Trait.Prefix" />
109
- <exclude name =" WebimpressCodingStandard.NamingConventions.Trait.Suffix" />
110
- </rule >
111
- <rule ref =" SlevomatCodingStandard.Classes.SuperfluousTraitNaming" />
112
-
113
- <!-- The Yoda comparison CAN be used. -->
114
- <rule ref =" SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" >
115
- <exclude name =" SlevomatCodingStandard.ControlStructures.DisallowYodaComparison.DisallowedYodaComparison" />
116
- </rule >
117
-
118
- <!-- @author and @copyright Annotations can be used. -->
119
- <rule ref =" SlevomatCodingStandard.Commenting.ForbiddenAnnotations" >
120
- <exclude name =" SlevomatCodingStandard.Commenting.ForbiddenAnnotations" />
121
- </rule >
122
-
123
- <!-- File names should be lowercased and class names should be uppercase. -->
124
- <rule ref =" Generic.Files.LowercasedFilename" >
125
- <exclude name =" Generic.Files.LowercasedFilename.NotFound" />
126
- </rule >
127
- <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
128
- <exclude name =" SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName" />
129
- </rule >
130
-
131
- <!-- Include the rest of the rules from the Laminas Coding Standard -->
132
- <rule ref =" LaminasCodingStandard" />
25
+ <!-- Include rules from the Qubus Coding Standard -->
26
+ <rule ref =" QubusCodingStandard" />
133
27
</ruleset >
0 commit comments