FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19171&edit=1

ID: 19171
Updated by: gsherwood@squiz.net
Reported By: dominic at varspool dot com
Summary: Show sniff codes option is ignored by some report
types
-Status: Open
+Status: Closed
Type: Bug
Package: PHP_CodeSniffer
Operating System: Mac OS X
Package Version: 1.3.2
PHP Version: 5.3.6
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: squiz
Fixed in git repo. Thanks a lot for the patch.


Previous Comments:
------------------------------------------------------------------------

[2011-12-29 23:39:47] dominicsch

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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 9, '12 at 2:29a
activeJan 9, '12 at 2:29a
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2022 Grokbase