PHP_CodeSniffer Add in a specific Sniff for every file

From: Date: Wed, 16 May 2007 04:45:19 +0000
Subject: PHP_CodeSniffer Add in a specific Sniff for every file
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27307@lists.php.net to get a copy of this message
I too, am now trying to deploy a webservice based on CodeSniffer that the developers on our projects can use to check their code. My problem is that at the top of every file we have a security check (except on index.php) that looks like this: // security check - must be included in all scripts if (!$GLOBALS['kewl_entry_point_run']) { die("You cannot view this page directly"); } // end security check Now, I still would like to include and use the Generic FileCommentSniff (slightly modified) as well. I see that there is a check to ignore the vim: bits and pieces, but this doesn't really suit my needs. Could anyone shed some light here for me? I think that this is an awesome piece of code, and will decrease peer review time drastically. Thanks to Squiz for this one and well done! --Paul

« previous php.pear.general (#27307) next »