Results 1 to 1 of 1
Oct 25, 2011, 13:19 #1
- Join Date
- Mar 2011
- 0 Post(s)
- 0 Thread(s)
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.
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?