{"id":20907,"date":"2018-12-20T12:13:19","date_gmt":"2018-12-20T12:13:19","guid":{"rendered":"https:\/\/blog.jetbrains.com\/phpstorm\/?p=13743"},"modified":"2024-01-09T14:51:19","modified_gmt":"2024-01-09T13:51:19","slug":"code-quality-tools-support-enhancements","status":"publish","type":"phpstorm","link":"https:\/\/blog.jetbrains.com\/pt-br\/phpstorm\/2018\/12\/code-quality-tools-support-enhancements","title":{"rendered":"Code Quality Tools Support Enhancements"},"content":{"rendered":"<p>With PhpStorm 2018.3, you\u2019ve got unified support and a straightforward setup process for several quality tools including PHPCS, PHPMD, and PHP CS Fixer. It seems natural to keep the corresponding settings in a single place, too. This is why we\u2019ve streamlined them in the latest release.<br \/>\n<!--more--><\/p>\n<p>To configure a quality tool, or all of them, you can now navigate to <em>Settings \/ Preferences | Language &amp; Frameworks | PHP | Quality Tools:<\/em><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-13746\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-quality_tools_set_up-1.png\" alt=\"quality_tools_set_up-1\" width=\"800\" height=\"522\" \/><\/p>\n<h2>Detecting PHPCS coding standards<\/h2>\n<p>When you develop with one of the major Frameworks or CMSs, you can rely on the corresponding coding standard to ensure code quality and style compliance.<\/p>\n<p>In PhpStorm 2018.3, if you have both PHPCS and one of the Standards added to the <code>required-dev<\/code> section of your <em>composer.json<\/em>, then the corresponding inspection will be turned on automatically as soon as your run <em>Install<\/em>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-13747\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-quality-tools-phpcs-doctrine-composer.png\" alt=\"quality-tools-phpcs-doctrine-composer\" width=\"800\" height=\"648\" \/><\/p>\n<p>Currently, the following standards will be detected automatically:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/doctrine\/coding-standard\" target=\"_blank\" rel=\"noopener\">doctrine\/coding-standard<\/a><\/li>\n<li><a href=\"https:\/\/www.drupal.org\/project\/coder\" target=\"_blank\" rel=\"noopener\">drupal\/coder<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/WordPress-Coding-Standards\/WordPress-Coding-Standards\" target=\"_blank\" rel=\"noopener\">wp-coding-standards\/wpcs<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/PHPCompatibility\/PHPCompatibility\/releases\" target=\"_blank\" rel=\"noopener\">phpcompatibility\/php-compatibility<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/joomla\/coding-standards\" target=\"_blank\" rel=\"noopener\">joomla\/coding-standards<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/djoos\/Symfony-coding-standard\" target=\"_blank\" rel=\"noopener\">escapestudios\/symfony2-coding-standard<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/yiisoft\/yii2-coding-standards\" target=\"_blank\" rel=\"noopener\">yiisoft\/yii2-coding-standards<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/magento-ecg\/coding-standard\" target=\"_blank\" rel=\"noopener\">magento-ecg\/coding-standard<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/wikimedia\/mediawiki-tools-codesniffer\" target=\"_blank\" rel=\"noopener\">mediawiki\/mediawiki-codesniffer<\/a><\/li>\n<\/ul>\n<p>Let us know what other standards you\u2019d like added: simply leave a comment <a href=\"https:\/\/youtrack.jetbrains.com\/issue\/WI-44759\" target=\"_blank\" rel=\"noopener\">in the dedicated issue<\/a> in our tracker.<\/p>\n<p>Stay tuned for more updates!<\/p>\n<p><em>Your JetBrains PhpStorm Team<\/em><br \/>\n<em> The Drive to Develop<\/em><\/p>\n","protected":false},"author":745,"featured_media":20908,"comment_status":"open","ping_status":"open","template":"","categories":[808,907],"tags":[716,477],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/20907"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/types\/phpstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/users\/745"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/comments?post=20907"}],"version-history":[{"count":1,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/20907\/revisions"}],"predecessor-version":[{"id":431949,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/20907\/revisions\/431949"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/media\/20908"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/media?parent=20907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/categories?post=20907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/tags?post=20907"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/cross-post-tag?post=20907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}