|
16 | 16 | <exclude name="PSR12.Classes.OpeningBraceSpace.Found"/><!-- we want 1 blank line after brace --> |
17 | 17 | <exclude name="PSR12.Files.DeclareStatement.SpaceFoundAfterDirective"/><!-- we use space in declare statement --> |
18 | 18 | <exclude name="PSR12.Files.DeclareStatement.SpaceFoundBeforeDirectiveValue"/><!-- we use space in declare statement --> |
19 | | - <exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/><!-- interferes with declare statement on first line --> |
| 19 | + <exclude name="PSR12.Files.FileHeader.SpacingAfterTagBlock"/><!-- interferes with declare statement on first line --> |
| 20 | + <exclude name="PSR12.Files.FileHeader.SpacingAfterUseBlock"/><!-- avoid blank linke between class, function and const imports --> |
| 21 | + <exclude name="PSR12.Files.FileHeader.SpacingAfterUseConstBlock"/><!-- avoid blank linke between class, function and const imports --> |
| 22 | + <exclude name="PSR12.Files.FileHeader.SpacingAfterUseFunctionBlock"/><!-- avoid blank linke between class, function and const imports --> |
20 | 23 | <exclude name="PSR12.Traits.UseDeclaration.BlankLineAfterLastUse"/><!-- we want 1 blank line before brace --> |
21 | 24 | <exclude name="PSR12.Traits.UseDeclaration.UseAfterBrace"/><!-- we want 1 blank line after brace --> |
22 | 25 | <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint"/><!-- already checked by SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing.MultipleSpacesBetweenTypeHintAndParameter --> |
|
59 | 62 | <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> |
60 | 63 | <rule ref="Generic.Files.InlineHTML"/> |
61 | 64 | <rule ref="Generic.Formatting.MultipleStatementAlignment"> |
| 65 | + <type>error</type> |
62 | 66 | <properties> |
63 | 67 | <property name="maxPadding" value="0"/> |
64 | | - <property name="error" value="true"/> |
65 | 68 | </properties> |
66 | 69 | </rule> |
67 | 70 | <rule ref="Generic.Formatting.SpaceAfterCast"/> |
|
95 | 98 | <rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement"/> |
96 | 99 | <rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/> |
97 | 100 | <rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/> |
| 101 | + <rule ref="SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing"/> |
| 102 | + <rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining"/> |
| 103 | + <rule ref="SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine"/> |
| 104 | + <rule ref="SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment"/> |
| 105 | + <rule ref="SlevomatCodingStandard.Classes.BackedEnumTypeSpacing"/> |
98 | 106 | <rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/> |
99 | 107 | <rule ref="SlevomatCodingStandard.Classes.ClassMemberSpacing"/> |
100 | 108 | <rule ref="SlevomatCodingStandard.Classes.ClassStructure"> |
|
118 | 126 | <rule ref="SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition"/> |
119 | 127 | <rule ref="SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition"/> |
120 | 128 | <rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces"/> |
| 129 | + <rule ref="SlevomatCodingStandard.Classes.EnumCaseSpacing"/> |
121 | 130 | <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
122 | 131 | <rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/> |
123 | 132 | <rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/> |
|
189 | 198 | <property name="spacesCountAroundEqualsSign" value="0"/> |
190 | 199 | </properties> |
191 | 200 | </rule> |
| 201 | + <rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat"> |
| 202 | + <properties> |
| 203 | + <property name="withSpacesAroundOperators" value="no"/> |
| 204 | + <property name="withSpacesInsideParentheses" value="no"/> |
| 205 | + <property name="shortNullable" value="yes"/> |
| 206 | + <property name="nullPosition" value="last"/> |
| 207 | + </properties> |
| 208 | + </rule> |
192 | 209 | <rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/> |
193 | 210 | <rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/> |
194 | 211 | <rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/> |
|
217 | 234 | </properties> |
218 | 235 | </rule> |
219 | 236 | <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/> |
220 | | - <rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"> |
221 | | - <properties> |
222 | | - <property name="withSpaces" value="no"/> |
223 | | - <property name="shortNullable" value="yes"/> |
224 | | - <property name="nullPosition" value="last"/> |
225 | | - </properties> |
226 | | - </rule> |
227 | 237 | <rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"/> |
228 | 238 | <rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/> |
229 | 239 | <rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"> |
|
0 commit comments