Skip to content

Commit 66064cf

Browse files
authored
Merge pull request #2 from PHPCompatibility/feature/prevent-false-positives-on-polyfill-code
Ruleset: prevent false positives on polyfill code
2 parents 35f63c1 + 5ce9f2c commit 66064cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

PHPCompatibilityPasswordCompat/ruleset.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,15 @@
1313
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.password_verifyFound"/>
1414
</rule>
1515

16+
<!-- Prevent false positives being thrown when run over the code of password_compat itself. -->
17+
<rule ref="PHPCompatibility.Constants.RemovedConstants.mcrypt_dev_urandomDeprecatedRemoved">
18+
<exclude-pattern>/password[-_]compat/lib/password\.php$</exclude-pattern>
19+
</rule>
20+
<rule ref="PHPCompatibility.Extensions.RemovedExtensions.mcryptDeprecatedRemoved">
21+
<exclude-pattern>/password[-_]compat/lib/password\.php$</exclude-pattern>
22+
</rule>
23+
<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_create_ivDeprecatedRemoved">
24+
<exclude-pattern>/password[-_]compat/lib/password\.php$</exclude-pattern>
25+
</rule>
26+
1627
</ruleset>

0 commit comments

Comments
 (0)