Skip to content

Commit d15c9de

Browse files
committed
add some stuff
1 parent ce08c5b commit d15c9de

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

MO4/ruleset.xml

+11-2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
9595
<!-- report invalid format of inline phpDocs with @var -->
9696
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
97+
<!-- TODO -->
98+
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment"/>
9799
<!-- Forbid useless @inheritDoc comments -->
98100
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>
99101
<!-- Forbid assignments in conditions -->
@@ -120,13 +122,19 @@
120122
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>
121123
<!-- Require usage of null coalesce operator when possible -->
122124
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
125+
<!-- Require usage of null coalesce equal operator when possible -->
126+
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/>
123127
<!-- Require usage of ternary operator when possible -->
124128
<rule ref="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator">
125129
<!-- But multiline is useful for readability -->
126130
<properties>
127131
<property name="ignoreMultiline" value="true"/>
128132
</properties>
129133
</rule>
134+
<!-- TODO -->
135+
<rule ref="SlevomatCodingStandard.Functions.UnusedParameter"/>
136+
<!-- TODO -->
137+
<rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/>
130138
<!-- Require global functions to be referenced via a fully qualified name -->
131139
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
132140
<!-- Require static closures for microoptimization -->
@@ -193,7 +201,7 @@
193201
<severity>0</severity>
194202
</rule>
195203
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
196-
<severity>0</severity>
204+
<severity>9</severity>
197205
</rule>
198206
<!-- Require return type hints to be declared -->
199207
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
@@ -202,8 +210,9 @@
202210
</properties>
203211
</rule>
204212
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation">
205-
<severity>0</severity>
213+
<severity>9</severity>
206214
</rule>
215+
<!-- TODO -->
207216
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
208217
<severity>0</severity>
209218
</rule>

0 commit comments

Comments
 (0)