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

Request #11056 Add possibility to exclude sniffs from another standard
Submitted: 2007-05-16 08:59 UTC
From: troehr Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 0.6.0)
PHP Version: Irrelevant OS: Irrelevant
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 : 38 + 46 = ?

 
 [2007-05-16 08:59 UTC] troehr (Torsten Roehr)
Description: ------------ To be able to use an existing standard as a template and only change or ommit certain sniffs it would be great if a method getExcludedSniffs() could be added to the PHP_CodeSniffer_Standards_CodingStandard class. So if I wanted to check against the PEAR standard but WIHTOUT the WhiteSpace sniffs a new standards class could be set up with the following methods: function getIncludedSniffs() { return array('PEAR'); } function getExcludedSniffs() { return array('PEAR/Sniffs/WhiteSpace'); }

Comments

 [2007-05-17 02:19 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. Check out the Standards/PHPCS standard (now in CVS) for an example of usage.