Don't flag instances of print_r() within the tests/ directory.
In some cases, calls like `print_r( $data, true )` (return the printed array as a string) can be helpful for providing context if/when a test fails.
This commit is contained in:
parent
00268c0fa2
commit
6fe6faf7ca
|
@ -54,4 +54,7 @@
|
||||||
<exclude-pattern>includes/**/abstract-*.php</exclude-pattern>
|
<exclude-pattern>includes/**/abstract-*.php</exclude-pattern>
|
||||||
<exclude-pattern>tests/*</exclude-pattern>
|
<exclude-pattern>tests/*</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule ref="WordPress.PHP.DevelopmentFunctions.error_log_print_r">
|
||||||
|
<exclude-pattern>tests/*</exclude-pattern>
|
||||||
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue