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

ID: 16163
Updated by: gsherwood@squiz.net
Reported By: gfranke at savedcite dot com
-Summary: move hardcoded class name to property
+Summary: Allow error messges to be overridden when extended
sniffs
-Status: Open
+Status: Assigned
Type: Feature/Change Request
Package: PHP_CodeSniffer
Package Version: 1.2.0RC1
PHP Version: 5.2.9
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Summary: move hardcoded class name to property
+Summary: Allow error messges to be overridden when
extended sniffs
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: squiz
I wont be making this change, but I'll leave the report open and rename
it.

What this really needs is the ability for all messages to be
overwritten. There is no point doing it for a single sniff.


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

[2009-04-30 15:44:46] gimler

-Package Version: 1.1.0
+Package Version: 1.2.0RC1

in the version 1.2.0RC1 the hardcoded values are in line 356+660

in line 193 is another hardcoded value in the error message
$error = 'You must use "/**" style comments for a file comment';

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

[2009-04-30 10:28:04] gimler

Description:
------------
please move the hardcoded value in file
PEAR/Sniffs/Commenting/FileCommentSniff.php at line 287+578 to a
property to easy override when i extends this class in my own standard.
tanks

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 2, '09 at 6:40a
activeJul 2, '09 at 6:40a
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2022 Grokbase