Skip to content

Sniff debug functions #3561

Answered by jrfnl
lucraraujo asked this question in Q&A
Discussion options

You must be logged in to vote

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#genericphpforbiddenfunctions

Alternatively, you could have a look at the PHP-Var-Dump-Check package, though that is unrelated to PHPCS.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lucraraujo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants