build: Add exception rule to phpcs to use Type::class in test code.

This commit is contained in:
Koji Tanaka 2022-12-31 10:11:23 +09:00 committed by Kamil Wylegala
parent 831bfe9315
commit e8453a04d4

View file

@ -15,6 +15,11 @@
<exclude-pattern>lib/Cake/Utility/Security.php</exclude-pattern>
</rule>
<rule ref="CakePHP.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase">
<!-- Want to use Type::class syntax a lot in unit tests, but cakephp-codesniffer is giving false positives. -->
<exclude-pattern>lib/Cake/Test/Case/*</exclude-pattern>
</rule>
<rule ref="CakePHP.Commenting.FunctionComment.Missing">
<exclude-pattern>lib/Cake/TestSuite/Fixture/CakeFixtureInjector.php</exclude-pattern>
</rule>