Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Type php
Date Monday, December 22, 2014 - 05:20
User shashankm
Location http://localhost/implant/docroot/admin/config/development/coder/review/ndr
Referrer
Message PHP_CodeSniffer_Exception: Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found in include_once() (line 13 of /sites/all/modules/coder/coder_sniffer/Drupal/Sniffs/Commenting/FileCommentSniff.php).
Severity error
Hostname 127.0.0.1
Operations
Comments
Comment #1
Shamsher_Alam CreditAttribution: Shamsher_Alam commentedphp 12/22/2014 - 05:20 PHP_CodeSniffer_Exception: Class PHP_CodeSniffer...
php 12/22/2014 - 05:18 PHP_CodeSniffer_Exception: Class PHP_CodeSniffer...
Comment #2
shaktik@Shamsher_Alam
Install PHP CodeSniffer to fix issues.
https://github.com/squizlabs/PHP_CodeSniffer
http://purencool.com/install-and-test-php_codesniffer-on-ubuntu
Comment #3
Shamsher_Alam CreditAttribution: Shamsher_Alam commentedThanks now its working fine.
Comment #4
klausiComment #5
shaktikComment #7
Saneesh CreditAttribution: Saneesh commentedHello,
PHP 5.5.12
PHP_CodeSniffer 2.3.1
I have followed the steps shaktik mentioned, but still I got the same error.
Note: In the above PHP_CodeSniffer page there is no class file named PHP_CodeSniffer/CommentParser/ClassCommentParser.php
Thanks,
Saneesh
Comment #8
encelado CreditAttribution: encelado commentedAbout missing CommentParser see https://github.com/squizlabs/PHP_CodeSniffer/issues/329.
Comment #9
klausiyou need to use PHPCS 1.x with Coder 7.x-2.x.
But don't use Coder 7.x-2.x anyway - use Coder 8.x-2.x which can check and fix code for any Drupal version.