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

ID: 19705
Updated by: gsherwood@squiz.net
Reported By: llosasjoan@gmail.com
Summary: Error in the Annotated ruleset.xml Sample File
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: PHP_CodeSniffer
Package Version: 1.4.2
PHP Version: 5.3.10
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: squiz
Thanks. I have updated the docs here:
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml

I'm currently in the middle of transitions away for the PEAR docs, so
they are now
even further out of date.


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

[2012-11-14 15:31:57] macjohn

Description:
------------
The first modified message of the sniff is coded incorrectly. First
appears the max limit of chars, and the the number of chars. The
order must be changed: %2$s and %1$s instead of %s %s.

Expected result:
----------------
<rule ref="Generic.Files.LineLength.MaxExceeded">
<message>Line contains %2$s chars, which is longer than the
max limit of %1$s</message>
</rule>

Actual result:
--------------
<rule ref="Generic.Files.LineLength.MaxExceeded">
<message>Line contains %s chars, which is longer than the
max limit of %s</message>
</rule>

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 14, '12 at 10:07p
activeNov 14, '12 at 10:07p
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2022 Grokbase