Doc #19705 [Opn->Csd]: Error in the Annotated ruleset.xml Sample File
| From: | gsherwood at squiz dot net | Date: | Wed, 14 Nov 2012 22:07:43 +0000 |
| Subject: | Doc #19705 [Opn->Csd]: Error in the Annotated ruleset.xml Sample File | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9340@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19705&edit=1
ID: 19705
Updated by: gsherwood@squiz.net
Reported By: llosasjoan at gmail dot 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>
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19705&edit=1