Using PHPLint with external code references and libraries


I’m using PHPLint to catch potential errors with my code-- not just syntax errors, but type checking and the other features PHPLint provides. My code uses CodeIgniter and ExpressionEngine code, which aren’t marked up for PHPLint. So, PHPLint doesn’t know anything about the external code and has a lot of complaints.

For example:

require_once(PATH_THIRD . ‘twitterfeed/config.php’);

ERROR: undeclared constant `PATH_THIRD’

Because PATH_THIRD is defined in one of these other libraries. So, how do you deal with constants, variables, classes and functions from external libraries when using PHPLint? Or, is there a better solution than PHPLint for this type of static code analysis?

Thanks, -NorthK