Skip to content

Commit 70beae2

Browse files
author
Robert Freigang
committed
Ignore not needed slevomat rules introduced in version 6.x
1 parent 14d00cb commit 70beae2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ProjektMOTORCodingStandard/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"><!-- relative path to your ruleset.xml -->
2323
<!-- keep it for debugging reasons to be able to list all rules vendor/bin/phpcs -e | grep SlevomatCodingStandard -->
2424
<!--<exclude name="*" />-->
25+
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment" />
26+
<exclude name="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator.RequiredNumericLiteralSeparator" />
2527
<exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode.DisallowedCommentAfterCode" />
2628
<exclude name="SlevomatCodingStandard.Functions.RequireMultiLineCall.RequiredMultiLineCall" />
2729
<exclude name="SlevomatCodingStandard.Files.LineLength.LineTooLong" />
@@ -73,6 +75,10 @@
7375
</properties>
7476
</rule>
7577

78+
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation">
79+
<exclude-pattern>tests/**Context*.php</exclude-pattern>
80+
</rule>
81+
7682
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
7783
<properties>
7884
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>

0 commit comments

Comments
 (0)