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

Request #18468 exclude-pattern does not work as documented
Submitted: 2011-04-21 12:12 UTC
From: sigmaz Assigned:
Status: Open Package: PHP_CodeSniffer (version 1.3.0)
PHP Version: 5.3.6 OS: Windows
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 : 20 + 37 = ?

 
 [2011-04-21 12:12 UTC] sigmaz (Steff Zeidler)
Description: ------------ On Windows the exclude-pattern must be defined with escaped backslashes. For example: <exclude-pattern>*\\test\\*</exclude-pattern> Expected result: ---------------- It would be great, if exclude-pattern definitions would be the same like on UNIX. Example: <exclude-pattern>*/test/*</exclude-pattern> May be the directory separator could be converted internally by PHP_CodeSniffer, so that example above would work, too. Actual result: -------------- All files will be queued to be sniffed.

Comments

 [2011-04-28 04:57 UTC] squiz (Greg Sherwood)
-Type: Bug +Type: Feature/Change Request