In order to submit extensions to Magento marketplace, source code needs to pass Magento Extension Quality Program Coding Standard checks.
You can either do it manually, by following this guide in official Github repository, or by fixing things as you code, by setting up check in PHP Storm.