Sniff debug functions #3561
Answered
by
jrfnl
lucraraujo
asked this question in
Q&A
Sniff debug functions
#3561
-
I wanted to sniff for debug function like |
Beta Was this translation helpful? Give feedback.
Answered by
jrfnl
Mar 17, 2022
Replies: 1 comment
-
You could use the Alternatively, you could have a look at the PHP-Var-Dump-Check package, though that is unrelated to PHPCS. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lucraraujo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use the
Generic,PHP.ForbiddenFunctions
sniff and you can provide your own list via your custom ruleset: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties#genericphpforbiddenfunctionsAlternatively, you could have a look at the PHP-Var-Dump-Check package, though that is unrelated to PHPCS.