Skip to content

Commit 034ff07

Browse files
author
robert.freigang
committed
Exclude deprecated sniffs Generic.Functions.CallTimePassByReference and SlevomatCodingStandard.TypeHints.UnionTypeHintFormat
1 parent 58efcbf commit 034ff07

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ProjektMOTORCodingStandard/ruleset.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@
2323

2424

2525
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"><!-- relative path to your ruleset.xml -->
26+
<!-- sniffs to exclude because of deprecation -->
27+
<exclude name="Generic.Functions.CallTimePassByReference" />
28+
<exclude name="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat" />
2629
<!-- keep it for debugging reasons to be able to list all rules vendor/bin/phpcs -e | grep SlevomatCodingStandard -->
2730
<!--<exclude name="*" />-->
28-
31+
<exclude name="SlevomatCodingStandard.Functions.RequireSingleLineCall.RequiredSingleLineCall" />
32+
<exclude name="SlevomatCodingStandard.Functions.DisallowArrowFunction.DisallowedArrowFunction" />
2933
<exclude name="SlevomatCodingStandard.Complexity.Cognitive.ComplexityTooHigh" />
3034
<exclude name="SlevomatCodingStandard.Files.FileLength.FileTooLong" />
3135
<exclude name="SlevomatCodingStandard.Classes.ClassLength.ClassTooLong" />
@@ -184,7 +188,9 @@
184188
<element key="tests" value="App\Tests"/>
185189
<element key="tests/features/bootstrap" value="App\Tests\Behat"/>
186190
</property>
187-
<property name="ignoredNamespaces" type="array" value="DoctrineMigrations"/>
191+
<property name="ignoredNamespaces" type="array">
192+
<element value="DoctrineMigrations"/>
193+
</property>
188194
</properties>
189195
</rule>
190196

0 commit comments

Comments
 (0)