I have faced issue in "vendor/bin/phpcbf"
command for resolving custom extension coding standard.
I am using Magento ver.2.3.1
Running command in project root:
vendor/bin/phpcbf "app/code/Namespace/MyModule"
But while running command through below error:
PHP Fatal error: Uncaught Error: Class 'PHP_CodeSniffer\Runner' not found in /var/www/html/magento/vendor/bin/phpcbf:17 Stack trace:
0 {main} thrown in /var/www/html/magento/vendor/bin/phpcbf on line 17
Any help would be appreciated. Thanks.
vendor/bin/phpcbf /var/www/html/magento/app/code/Vendor/Module --standard=MEQP2
phpcbf
command after running this command cdmagento-coding-standard
which phpcbf
to see if it's installed or not