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

Bug #18709 Code sniffer sniffs file if even if it's in --ignore
Submitted: 2011-08-04 15:16 UTC
From: biozshock Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version SVN)
PHP Version: 5.3.6 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


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 : 22 - 2 = ?

 
 [2011-08-04 15:16 UTC] biozshock (Artem Lopata)
Description: ------------ Code sniffer sniffs file if one file given and this file in --ignore pattern. Test script: --------------- phpcs --ignore=*system/application/views/* --standard=./phpcs_standards/ProjectGeneric system/application/views/widgets/movies_widget.php Expected result: ---------------- phpcs --ignore=*system/application/views/* --standard=./phpcs_standards/ProjectGeneric system/application/views/widgets/movies_widget.php Time: 0 seconds, Memory: 3.75Mb Actual result: -------------- phpcs --ignore=*system/application/views/* --standard=./phpcs_standards/ProjectGeneric system/application/views/widgets/movies_widget.php FILE: ...ormProjects/project/system/application/views/widgets/movies_widget.php -------------------------------------------------------------------------------- FOUND 18 ERROR(S) AND 2 WARNING(S) AFFECTING 9 LINE(S) -------------------------------------------------------------------------------- 6 | ERROR | Line indented incorrectly; expected 0 spaces, found 24 9 | ERROR | Line indented incorrectly; expected 0 spaces, found 24 11 | ERROR | Line indented incorrectly; expected 4 spaces, found 28 16 | ERROR | Line indented incorrectly; expected 0 spaces, found 24 .....

Comments

 [2011-08-04 15:17 UTC] biozshock (Artem Lopata)
 [2011-08-05 08:59 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
This bug has been fixed in SVN. 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. Thanks for the patch.