@@ -107,6 +107,7 @@ Detailed list of Slevomat sniffs with configured settings. Some sniffs are not i
107
107
- ignoreStandaloneIfInScope: true
108
108
- ignoreOneLineTrailingIf: true
109
109
- SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator
110
+ - SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator
110
111
- SlevomatCodingStandard.Functions.StaticClosure
111
112
- SlevomatCodingStandard.Operators.DisallowEqualOperators
112
113
- SlevomatCodingStandard.Operators.RequireOnlyStandaloneIncrementAndDecrementOperators
@@ -122,9 +123,6 @@ Excluded sniffs:
122
123
123
124
#### Cleaning
124
125
125
- - SlevomatCodingStandard.Classes.UnusedPrivateElements
126
- - alwaysUsedPropertiesAnnotations: false
127
- - alwaysUsedPropertiesSuffixes: false
128
126
- SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure
129
127
- SlevomatCodingStandard.Functions.UselessParameterDefaultValue
130
128
- SlevomatCodingStandard.Namespaces.UnusedUses
@@ -144,6 +142,7 @@ Excluded sniffs:
144
142
- ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach: true
145
143
- SlevomatCodingStandard.Variables.UselessVariable
146
144
- SlevomatCodingStandard.Exceptions.DeadCatch
145
+ - SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch
147
146
148
147
Excluded sniffs:
149
148
@@ -171,14 +170,16 @@ Excluded sniffs:
171
170
- linesCountBeforeFirstControlStructure: 0
172
171
- linesCountAfterControlStructure: 1
173
172
- linesCountAfterLastControlStructure: 0
174
- - tokensToCheck : [ T_SWITCH, T_TRY, T_IF, T_FOR, T_FOREACH, T_WHILE ]
173
+ - controlStructures : [ switch, try, if, for, foreach, while ]
175
174
- SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing
176
175
- allowSingleLineYieldStacking: whether or not to allow multiple yield/yield from statements in a row without blank lines.
177
- - linesCountBeforeControlStructure: 1
178
- - linesCountBeforeFirstControlStructure: 0
179
- - linesCountAfterControlStructure: 0
180
- - linesCountAfterLastControlStructure: 0
181
- - tokensToCheck: default
176
+ - linesCountBefore: 1
177
+ - linesCountBeforeFirst: 0
178
+ - linesCountAfter: 0
179
+ - linesCountAfterLast: 0
180
+ - linesCountAfterWhenLastInCaseOrDefault: 0
181
+ - linesCountAfterWhenLastInLastCaseOrDefault: 0
182
+ - jumpStatements: [ goto, throw, yield, continue, break, return]
182
183
- SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses
183
184
- SlevomatCodingStandard.ControlStructures.NewWithParentheses
184
185
- SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator
@@ -188,7 +189,8 @@ Excluded sniffs:
188
189
- ignoreMultiLine: false
189
190
- SlevomatCodingStandard.ControlStructures.DisallowYodaComparison
190
191
- SlevomatCodingStandard.Functions.DisallowArrowFunction
191
- - SlevomatCodingStandard.Functions.TrailingCommaInCall
192
+ - SlevomatCodingStandard.Functions.RequireTrailingCommaInCall
193
+ - SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration
192
194
- SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
193
195
- psr12Compatible: true
194
196
- caseSensitive: true
@@ -220,9 +222,11 @@ Excluded sniffs:
220
222
- SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
221
223
- SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing
222
224
- SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing
225
+ - SlevomatCodingStandard.TypeHints.UnionTypeHintFormat
226
+ - withSpaces: no
227
+ - shortNullable: yes
228
+ - nullPosition: last
223
229
- SlevomatCodingStandard.Namespaces.DisallowGroupUse
224
- - SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword
225
- - keywordsToCheck: T_EXTENDS, T_IMPLEMENETS, T_USE, T_NEW, T_THROW
226
230
- SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions
227
231
- specialExceptionNames: false
228
232
- ignoredNames: default
@@ -237,6 +241,7 @@ Excluded sniffs:
237
241
- SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation
238
242
- SlevomatCodingStandard.Commenting.ForbiddenAnnotations
239
243
- forbiddenAnnotations: @author , @created , @version , @package , @copyright , @license , @throws
244
+ - SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion
240
245
- SlevomatCodingStandard.Commenting.EmptyComment
241
246
- SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration
242
247
- SlevomatCodingStandard.Commenting.UselessFunctionDocComment
0 commit comments