| Newsgroups |
php.pear.bugs |
| Message-ID |
<[email protected]> |
Edit report at https://pear.php.net/bugs/bug.php?id=20542&edit=1
ID: 20542
Comment by: [email protected]
Reported By: saneeshkv at gmail dot com
Summary: PHP CodeSniffer issue on CSS @media
Status: Open
Type: Bug
Package: PHP_CodeSniffer
Operating System: Windows
Package Version: 2.3.2
PHP Version: 5.5.24
Roadmap Versions:
New Comment:
I have tried this too.
http://cgit.drupalcode.org/drupalcs/commit/?id=905fa01
Still it shows the error.
Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message
'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found' in
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer\Standards\Drupal\Sniffs\Commenting\FileCommentSniff.php
on line 13
PHP_CodeSniffer_Exception: Class
PHP_CodeSniffer_CommentParser_ClassCommentParser not found in
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer\Standards\Drupal\Sniffs\Commenting\FileCommentSniff.php
on line 13
Call Stack:
0.0002 123664 1. {main}()
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\scripts\phpcs:0
0.0125 1057816 2. PHP_CodeSniffer_CLI->runphpcs()
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\scripts\phpcs:25
0.0133 1098816 3. PHP_CodeSniffer_CLI->process()
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer\CLI.php:95
0.0161 1106496 4. PHP_CodeSniffer->initStandard()
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer\CLI.php:830
0.2056 1141904 5. PHP_CodeSniffer->registerSniffs()
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer.php:560
0.3392 1219096 6.
include_once('C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer\Standards\Drupal\Sniffs\Commenting\FileCommentSniff.php')
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer.php:1318
Previous Comments:
------------------------------------------------------------------------
[2015-05-05 21:02:32] saneesh_1980
This error it shows when I update the Drupal PHP_CodeSniffer fix.
Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message
'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found' in
C:\wamp\bin\php\php5.5.12\PHP_CodeSniffer\CodeSniffer\Standards\Drupal\Sniffs\Commenting\FileCommentSniff.php
on line 13
------------------------------------------------------------------------
[2015-05-05 20:58:53] saneesh_1980
if possible please check the following link too.
https://www.drupal.org/node/1431428
------------------------------------------------------------------------
[2015-05-05 20:55:20] saneesh_1980
So, what should I do? How can I fix it in Squiz/Drupal standard? What
are the modifications I have to do?
------------------------------------------------------------------------
[2015-05-05 08:02:51] squiz
There are included sniffs that are generating these errors from the
Squiz standard. The Drupal
standard might just be including them, in which case fixing them in
PHPCS will fix them in Drupal. If
Drupal has copied the sniffs and modified them, you'll need them to make
a fix there as well.
------------------------------------------------------------------------
[2015-05-05 07:59:38] saneesh_1980
Sorry! This issue is not for the standard code sniffers with the
PHP_CodeSniffer. This issue is ONLY with the Drupal's code sniffer. I'm
not sure I could ask this question here.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=20542
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20542&edit=1