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

Bug #19171 Show sniff codes option is ignored by some report types
Submitted: 2011-12-30 04:39 UTC
From: dominicsch Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.2)
PHP Version: 5.3.6 OS: Mac OS X
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 : 5 + 9 = ?

 
 [2011-12-30 04:39 UTC] dominicsch (Dominic Scheirlinck)
Description: ------------ The --help option to phpcs says this about the -s flag: -s Show sniff codes in all reports However, providing this flag does not show sniff codes in all reports. For example, the sniff code is never shown when using - -report=emacs - this makes it hard to show sniff codes from emacs/vim quickfix windows. Test script: --------------- phpcs -s --report=emacs SomeFile.php Expected result: ---------------- Example output line: /path/to/SomeFile.php:67:15: error - Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSame) Actual result: -------------- /path/to/SomeFile.php:67:15: error - Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space

Comments

 [2012-01-09 08:29 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Fixed in git repo. Thanks a lot for the patch.