I have installed coder module, after code review for each module below error come, How to rid this issue?

PHP_CodeSniffer_Exception: Referenced sniff Drupal.Commenting.FileComment does not exist in PHP_CodeSniffer->_expandRulesetReference() (line 814 of C:\xampp\php\pear\PHP\CodeSniffer.php).

Comments

VM’s picture

per https://www.drupal.org/node/644164 please edit your post and move it to the 'post installation' forum. Thank you.

see https://www.drupal.org/node/2719893

mahapatra.tusar’s picture

I already did this before but if we do like this $var=10 not working. Please share with better solution except that.

Jaypan’s picture

FileComment does not exist

I'm guessing you're missing the @file comment for the file.

https://groups.drupal.org/node/13275

mahapatra.tusar’s picture

Any additional file is require for that with XAMPP

Jaypan’s picture

I don't understand your comment. It has nothing to do with XAMPP or even other files. You simply add that directive to the top of your file.

mahapatra.tusar’s picture

I have added @file comment but showing same error, even one contributed module OOP(https://www.drupal.org/project/oop_examples) already have @file comment in .module file but this module also have same error.

Jaypan’s picture

Maybe your format of the comment is wrong or not at the top.

mahapatra.tusar’s picture

this module have correct format(https://www.drupal.org/project/oop_examples) but not working

Jaypan’s picture

Ok I must have misdiagnosed it then. Sorry!