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