[PEAR-BUG] Bug #16182 [NEW]: Pear Doc standards.sample.php fails PHP_CodeSniffer validation
[email protected] ("hm2k at php dot net")
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <[email protected]> |
From: hm2k
Operating system:
Package version:
PHP version: 5.2.9
Package: Documentation
Bug Type: Bug
Bug description: Pear Doc standards.sample.php fails PHP_CodeSniffer validation
Description:
------------
The sample file found here:
http://pear.php.net/manual/en/standards.sample.php
Does not appear to be valid according to PHP_CodeSniffer as per the
notes.
I have checked this myself, and it is still not valid according to
PHP_CodeSniffer.
This means, that either PHP_CodeSniffer is wrong, or the documentation is,
one MUST comply.
Rather than adding another note, I have reported this as a bug so it can
be tracked.
Test script:
---------------
[root@blade php]# phpcs pear_sample_file.phps
--------------------------------------------------------------------------------
FOUND 3 ERROR(S) AND 1 WARNING(S) AFFECTING 3 LINE(S)
--------------------------------------------------------------------------------
74 | WARNING | Line exceeds 85 characters; contains 105 characters
150 | ERROR | There must be exactly one blank line before the tags in
| | function comment
197 | ERROR | Parameters must appear immediately after the comment
197 | ERROR | Expected 1 space after the longest variable name
--------------------------------------------------------------------------------
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=16182&edit=1
--