-
Notifications
You must be signed in to change notification settings - Fork 64
/
ruleset.xml
26 lines (22 loc) · 1.08 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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>