I try to submit a module to the marketplace but it fails. When I want to see the reason it fails, I get no relevant JSON back. What can I do?
The JSON returned is: {"tool":"phpcs","status":"FAIL","reports":[]}
PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
Install the PHP codesniffer and then run the below 3 commands to see the errors
/opt/lampp/bin/php vendor/squizlabs/php_codesniffer/bin/phpcs app/code/Company/Module/ --standard=Magento2
/opt/lampp/bin/php vendor/squizlabs/php_codesniffer/bin/phpcs app/code/Company/Module/ --standard=Magento2 --severity=10
/opt/lampp/bin/php vendor/squizlabs/php_codesniffer/bin/phpcbf app/code/Company/Module/ --standard=Magento2 --severity=10