Skip to content

Commit c3eeabd

Browse files
committed
add some stuff
1 parent 70620d2 commit c3eeabd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

MO4/ruleset.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
8484
<!-- report invalid format of inline phpDocs with @var -->
8585
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
86+
<!-- TODO -->
87+
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment" />
8688
<!-- Forbid useless @inheritDoc comments -->
8789
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>
8890
<!-- Forbid assignments in conditions -->
@@ -109,13 +111,19 @@
109111
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>
110112
<!-- Require usage of null coalesce operator when possible -->
111113
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
114+
<!-- Require usage of null coalesce equal operator when possible -->
115+
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/>
112116
<!-- Require usage of ternary operator when possible -->
113117
<rule ref="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator">
114118
<!-- But multiline is useful for readability -->
115119
<properties>
116120
<property name="ignoreMultiline" value="true"/>
117121
</properties>
118122
</rule>
123+
<!-- TODO -->
124+
<rule ref="SlevomatCodingStandard.Functions.UnusedParameter" />
125+
<!-- TODO -->
126+
<rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue" />
119127
<!-- Require global functions to be referenced via a fully qualified name -->
120128
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
121129
<!-- Require static closures for microoptimization -->
@@ -174,7 +182,7 @@
174182
<severity>0</severity>
175183
</rule>
176184
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
177-
<severity>0</severity>
185+
<severity>9</severity>
178186
</rule>
179187
<!-- Require return type hints to be declared -->
180188
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
@@ -183,8 +191,9 @@
183191
</properties>
184192
</rule>
185193
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation">
186-
<severity>0</severity>
194+
<severity>9</severity>
187195
</rule>
196+
<!-- TODO -->
188197
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
189198
<severity>0</severity>
190199
</rule>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy