mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 16:27:20 +00:00
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset name="CakePHP2PHP8">
|
|
<!-- Include CakePHP 2 Coding standard rules -->
|
|
<rule ref="CakePHP" />
|
|
|
|
<!-- Defined public method with underscore: __tostring(). -->
|
|
<rule ref="CakePHP.NamingConventions.ValidFunctionName.PublicWithUnderscore">
|
|
<exclude-pattern>lib/Cake/Network/Http/HttpSocketResponse.php</exclude-pattern>
|
|
</rule>
|
|
|
|
<rule ref="Generic.PHP.DeprecatedFunctions.Deprecated">
|
|
<!-- Using the deprecated get_magic_quotes_gpc function. -->
|
|
<exclude-pattern>lib/Cake/View/Helper.php</exclude-pattern>
|
|
<!-- Using the deprecated mcrypt_* functions. -->
|
|
<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>
|
|
</ruleset>
|