Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Request #11556 cmdline option to exclude certain directories
Submitted: 2007-07-07 06:11 UTC
From: cweiske Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 0.7.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 35 + 32 = ?

 
 [2007-07-07 06:11 UTC] cweiske (Christian Weiske)
Description: ------------ It would be helpful if there was a command line option to exclude certain directories from checking, like tests/ and examples/. You often have many files to check so that naming them explicitely in cmdline is not possible, but still want to exclude some of them.

Comments

 [2007-07-07 06:29 UTC] squiz (Greg Sherwood)
Nice feature. Recent version got command line options to not recurse into directories and to check only some file extensions, so I think this option would work well with them.
 [2007-07-27 05:41 UTC] squiz (Greg Sherwood)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. There is now a new command line options to do this. Specify like this: phpcs --ignore=/tests/*,/examples/*