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  


 [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.