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  


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