Search code examples
phpphplint

Is there an option to make phplint fail if a var_dump is in the code?


We are using phplint to check our code and I am trying to find an option that would make it fail if there is a var_dump somwehere in the code. As I could not find an option for it, is there another way to achieve this?

Thanks for your help!


Solution

  • A static analysis tool such as PHP_CodeSniffer can (and should) be used to perform a check such as the one you describe.