Skip to content

Commit

Permalink
add some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoll committed Dec 8, 2020
1 parent 90393ca commit 1eacc89
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions MO4/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<!-- report invalid format of inline phpDocs with @var -->
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
<!-- TODO -->
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment"/>
<!-- Forbid useless @inheritDoc comments -->
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>
<!-- Forbid assignments in conditions -->
Expand All @@ -120,13 +122,19 @@
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>
<!-- Require usage of null coalesce operator when possible -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
<!-- Require usage of null coalesce equal operator when possible -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/>
<!-- Require usage of ternary operator when possible -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator">
<!-- But multiline is useful for readability -->
<properties>
<property name="ignoreMultiline" value="true"/>
</properties>
</rule>
<!-- TODO -->
<rule ref="SlevomatCodingStandard.Functions.UnusedParameter"/>
<!-- TODO -->
<rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/>
<!-- Require global functions to be referenced via a fully qualified name -->
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
<!-- Require static closures for microoptimization -->
Expand Down Expand Up @@ -193,7 +201,7 @@
<severity>0</severity>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
<severity>0</severity>
<severity>9</severity>
</rule>
<!-- Require return type hints to be declared -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
Expand All @@ -202,8 +210,9 @@
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation">
<severity>0</severity>
<severity>9</severity>
</rule>
<!-- TODO -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
<severity>0</severity>
</rule>
Expand Down

0 comments on commit 1eacc89

Please sign in to comment.