mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-22 06:47:19 +00:00
build: Add exception rule to phpcs to use Type::class in test code.
This commit is contained in:
parent
831bfe9315
commit
e8453a04d4
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@
|
||||||
<exclude-pattern>lib/Cake/Utility/Security.php</exclude-pattern>
|
<exclude-pattern>lib/Cake/Utility/Security.php</exclude-pattern>
|
||||||
</rule>
|
</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">
|
<rule ref="CakePHP.Commenting.FunctionComment.Missing">
|
||||||
<exclude-pattern>lib/Cake/TestSuite/Fixture/CakeFixtureInjector.php</exclude-pattern>
|
<exclude-pattern>lib/Cake/TestSuite/Fixture/CakeFixtureInjector.php</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
Loading…
Reference in a new issue