Closed jazz-it closed 4 years ago
https://git.drupalcode.org/project/coder/blob/8.x-3.x/coder_sniffer/DrupalPractice/Project.php
This is the class identified as a sniff, which it shouldn't. How to avoid this issue?
Seems like a configuration issue. I accidentally forgot to register coding standards properly. The following lines helped:
composer global require drupal/coder:^8.3.1
composer global require dealerdirect/phpcodesniffer-composer-installer
I'm facing the following issue with my extension phpcs 1.0.5, whenever I open my Drupal Workspace:
phpcs: Uncaught Error: Call to undefined method DrupalPractice\Project::register() in ~/.config/composer/vendor/squizlabs/php_codesniffer/src/Ruleset.php:1218
When I take a closer look, everything seems ok... is there something that I've missed?