{"id":405195,"date":"2023-11-14T04:10:54","date_gmt":"2023-11-14T03:10:54","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=qodana&#038;p=405195"},"modified":"2023-11-14T04:10:58","modified_gmt":"2023-11-14T03:10:58","slug":"code-quality-under-pressure-supporting-developers-with-qodana-integration-in-intellij-based-ides","status":"publish","type":"qodana","link":"https:\/\/blog.jetbrains.com\/zh-hans\/qodana\/2023\/11\/code-quality-under-pressure-supporting-developers-with-qodana-integration-in-intellij-based-ides\/","title":{"rendered":"\u538b\u529b\u4e0b\u7684\u4ee3\u7801\u8d28\u91cf\uff1a\u901a\u8fc7\u57fa\u4e8e IntelliJ \u7684 IDE \u4e2d\u7684 Qodana \u96c6\u6210\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u652f\u6301"},"content":{"rendered":"<p>\u5f00\u53d1\u8005\u9762\u5bf9\u7684\u9700\u6c42\u65f6\u5e38\u589e\u52a0\uff0c\u7d27\u8feb\u7684\u671f\u9650\u5f80\u5f80\u610f\u5473\u7740\u91cd\u91cf\u4e0d\u91cd\u8d28\uff0c\u540c\u65f6\u8fd8\u8981\u88ab\u8feb\u4ee5\u66f4\u5c11\u7684\u8d44\u6e90\u505a\u66f4\u591a\u7684\u4e8b\u3002\u00a0<\/p>\n<p>\u5728\u5e94\u7528\u7a0b\u5e8f\uff08\u4f8b\u5982 CI \u89e3\u51b3\u65b9\u6848\u548c IDE\uff09\u4e4b\u95f4\u5207\u6362\u65f6\uff0c\u8fd8\u5b58\u5728\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u95ee\u9898\u3002 \u7531\u6b64\uff0c\u5373\u4f7f\u662f\u4ee3\u7801\u8d28\u91cf\u8fd9\u6837\u7684\u5927\u4e8b\u4e5f\u53ef\u80fd\u4f1a\u88ab\u5ffd\u89c6\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u600e\u6837\u624d\u80fd\u83b7\u5f97\u652f\u6301\u6765\u5207\u5b9e\u5e94\u5bf9\u671f\u9650\u3001\u4e13\u6ce8\u4e8e\u624b\u5934\u5de5\u4f5c\uff0c\u5e76\u5c06\u4ee3\u7801\u8d28\u91cf\u4f5c\u4e3a\u5173\u952e\u4e8b\u9879\u4f18\u5148\u8003\u91cf\uff1f \u7b54\u6848\u5c31\u662f\u4f7f\u7528 JetBrains Qodana\u3002\u00a0<\/p>\n<p><strong>\u4ec0\u4e48\u662f Qodana\uff1f<\/strong><\/p>\n<p>Qodana \u662f\u4e00\u4e2a<a href=\"https:\/\/www.jetbrains.com.cn\/qodana\/\" target=\"_blank\" rel=\"noopener\">\u9759\u6001\u4ee3\u7801\u5206\u6790\u5e73\u53f0<\/a>\uff0c\u6709\u52a9\u4e8e\u76f4\u63a5\u5728 IDE \u4e2d\u63d0\u9ad8\u4ee3\u7801\u8d28\u91cf\u3002 \u5c06\u4ee3\u7801\u626b\u63cf\u4f5c\u4e3a CI \u7ba1\u9053\u7684\u4e00\u90e8\u5206\u81ea\u52a8\u6267\u884c\u53ef\u4ee5\u5e2e\u52a9\u4e13\u4e1a\u8f6f\u4ef6\u5f00\u53d1\u8005\u8282\u7701\u4ee3\u7801\u9a8c\u8bc1\u65f6\u95f4\u3002\u00a0<\/p>\n<p>\u56e0\u6b64\uff0cQodana \u4f7f\u8d28\u91cf\u95e8\u53ef\u4ee5\u5728\u8fd9\u4e9b\u7ba1\u9053\u4e2d\u66f4\u6613\u4f7f\u7528\uff0c\u786e\u4fdd\u4ee3\u7801\u7b26\u5408\u56e2\u961f\u5b9a\u4e49\u7684\u6807\u51c6\u3002 Qodana \u63d0\u4f9b\u7684\u4ee3\u7801\u68c0\u67e5\u4ee5 JetBrains 20 \u591a\u5e74\u7684\u8f6f\u4ef6\u5f00\u53d1\u7ecf\u9a8c\u4e3a\u57fa\u7840\u3002<\/p>\n<p>\u68c0\u67e5\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u5b89\u5168\u626b\u63cf\u548c\u7b2c\u4e09\u65b9\u8bb8\u53ef\u8bc1\u5ba1\u6838\uff0c\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u4e86\u89e3\u9879\u76ee\u7684\u6982\u62ec\u72b6\u6001\uff0c\u5e76\u5feb\u901f\u5206\u7c7b\u3001\u786e\u5b9a\u4f18\u5148\u7ea7\u5e76\u9996\u5148\u89e3\u51b3\u5173\u952e\u95ee\u9898\u3002\u00a0<\/p>\n<p>\u9759\u6001\u5206\u6790\u5f88\u5bb9\u6613\u5165\u95e8\u3002 \u5982\u679c\u60a8\u521a\u63a5\u89e6 Qodana\uff0c\u53ef\u4ee5\u76f4\u63a5\u4ece IDE \u8fd0\u884c\u7b2c\u4e00\u6b21\u626b\u63cf\uff0c\u5e76\u5feb\u901f\u67e5\u770b\u672c\u5730\u68c0\u67e5\u7684\u7ed3\u679c\u3002 \u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 CI \u5411\u5bfc\u5c06 Qodana \u6dfb\u52a0\u5230\u7ba1\u9053\u3002 \u6211\u4eec\u6765\u770b\u770b\u8be5\u5982\u4f55\u5f00\u59cb\u3002\u00a0<\/p>\n<p><strong>\u4f7f\u7528 Qodana IDE \u63d2\u4ef6\u7b80\u5316\u8bbe\u7f6e\u00a0<\/strong><\/p>\n<p>\u5728\u4e0b\u9762\u7684\u89c6\u9891\u4e2d\uff0cAnton Arhipov\uff08\u6211\u4eec\u7684\u6280\u672f\u5e03\u9053\u5e08\uff09\u5c06\u5f15\u5bfc\u60a8\u5b8c\u6210 Qodana \u7684\u8bbe\u7f6e\u8fc7\u7a0b\u3002 \u5982\u9700\u5206\u6b65\u8bf4\u660e\uff0c\u8bf7\u89c2\u770b\u89c6\u9891\u3002<\/p>\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<div class=\"wp-block-embed__wrapper\">\u00a0<\/div>\n<\/figure>\n<p>\u5728 Anton \u7684\u6f14\u793a\u4e2d\uff0cIDE \u4e3a IntelliJ IDEA\u3002 \u4e0d\u8fc7\uff0cQodana \u5df2\u7ecf\u4e0e\u8bb8\u591a\u60a8\u559c\u7231\u7684 IDE \u6346\u7ed1\uff0c\u5f00\u7bb1\u5373\u7528\u3002 \u6211\u4eec\u76ee\u524d\u652f\u6301 <a href=\"https:\/\/www.jetbrains.com.cn\/idea\/\" target=\"_blank\" rel=\"noopener\">IntelliJ IDEA<\/a>\u3001<a href=\"https:\/\/www.jetbrains.com.cn\/phpstorm\/\" target=\"_blank\" rel=\"noopener\">PhpStorm<\/a>\u3001<a href=\"https:\/\/www.jetbrains.com.cn\/go\/\" target=\"_blank\" rel=\"noopener\">GoLand<\/a>\u3001<a href=\"https:\/\/www.jetbrains.com.cn\/rider\/\" target=\"_blank\" rel=\"noopener\">Rider<\/a>\u3001<a href=\"https:\/\/www.jetbrains.com.cn\/webstorm\/\" target=\"_blank\" rel=\"noopener\">WebStorm<\/a> \u548c <a href=\"https:\/\/www.jetbrains.com.cn\/pycharm\/\" target=\"_blank\" rel=\"noopener\">PyCharm<\/a>\u3002 \u5176\u4ed6 JetBrains IDE \u5c06\u5f88\u5feb\u6dfb\u52a0\uff01\u00a0<\/p>\n<p><strong>\u60a8\u8fd8\u53ef\u4ee5\u5c06 Qodana \u6dfb\u52a0\u5230 CI\/CD \u7ba1\u9053<\/strong><\/p>\n<p>Qodana IDE \u63d2\u4ef6\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5c06 Qodana \u6dfb\u52a0\u5230 CI \u7ba1\u9053\uff0c\u4ee5\u4fbf\u53ca\u65e9\u53d1\u73b0\u95ee\u9898\u3002 \u8f6c\u5230 <strong>Tools<\/strong>\uff08\u5de5\u5177\uff09\u83dc\u5355\uff0c\u9009\u62e9 <strong>Qodana<\/strong>\uff0c\u7136\u540e\u5411 CI \u7ba1\u9053\u9009\u62e9 <strong>Add Qodana<\/strong>\uff08\u6dfb\u52a0 Qodana\uff09\u3002 \u5411\u5bfc\u5c06\u4e3a\u60a8\u9009\u62e9\u7684 CI \u670d\u52a1\u5668\u751f\u6210\u914d\u7f6e\u6587\u4ef6\u3002 \u4f8b\u5982\uff0c\u70b9\u51fb GitHub Actions \u7684 <strong>Add<\/strong>\uff08\u6dfb\u52a0\uff09\u6309\u94ae\uff0c\u5de5\u4f5c\u6d41\u914d\u7f6e\u6587\u4ef6\u5c31\u4f1a\u5728\u9879\u76ee\u4e2d\u521b\u5efa\u3002 \u8fd8\u6709\u9002\u7528\u4e8e\u5176\u4ed6 CI \u670d\u52a1\u5668\uff08\u4f8b\u5982 <a href=\"https:\/\/www.jetbrains.com.cn\/teamcity\/\" target=\"_blank\" rel=\"noopener\">TeamCity<\/a>\u3001GitLab CI\/CD\u3001Jenkins \u7b49\uff09\u7684\u5e2e\u52a9\u7a0b\u5e8f\u3002\u00a0<\/p>\n<p><strong>\u7559\u5728 IDE \u4e2d\u3001\u8bbf\u95ee\u95ee\u9898\u5e76\u66f4\u5feb\u5b9e\u73b0\u4fee\u6b63<\/strong><\/p>\n<p><a href=\"https:\/\/plugins.jetbrains.com\/plugin\/16938-qodana\" target=\"_blank\" rel=\"noopener\">Qodana IDE \u63d2\u4ef6<\/a>\u4f1a\u5c06\u7ed3\u679c\u76f4\u63a5\u4f20\u9012\u5230 IDE \u4e2d\uff0c\u5f53\u60a8\u6d4f\u89c8\u95ee\u9898\u62a5\u544a\u65f6\uff0c\u76f4\u63a5\u5728\u4ee3\u7801\u4e2d\u9ad8\u4eae\u663e\u793a\u95ee\u9898\u3002 \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 Qodana \u76f4\u63a5\u67e5\u770b\u5931\u8d25\u7684\u68c0\u67e5\u548c\u6f0f\u6d1e\u3002\u00a0<\/p>\n<p>\u5f53 CI \u7ba1\u9053\u4e2d\u65b0\u7684\u4ee3\u7801\u626b\u63cf\u62a5\u544a\u51c6\u5907\u5c31\u7eea\u65f6\uff0cQodana \u8fd8\u53ef\u4ee5\u53d1\u51fa\u901a\u77e5\uff0c\u8ba9\u60a8\u5f00\u59cb\u4fee\u6b63 IDE \u4e2d\u6807\u8bb0\u7684\u95ee\u9898\u3002\u00a0<\/p>\n<p><strong>\u51cf\u5c11\u4e0a\u4e0b\u6587\u548c\u5e94\u7528\u5207\u6362\uff0c\u5b9e\u73b0\u66f4\u6df1\u5165\u7684\u4e13\u6ce8<\/strong><\/p>\n<p>\u57fa\u4e8e\u53cd\u9988\uff0c\u6211\u4eec\u5f97\u77e5\u5728\u6807\u7b7e\u9875\u4e4b\u95f4\u5207\u6362\u901a\u5e38\u610f\u5473\u7740\u5931\u53bb\u4e13\u6ce8\uff0c\u964d\u4f4e\u6548\u7387\uff0c\u8fd9\u5728\u4ea4\u671f\u7d27\u5f20\u7684\u60c5\u51b5\u4e0b\u5c24\u5176\u660e\u663e\u3002 \u65e0\u6cd5\u96c6\u4e2d\u6ce8\u610f\u529b\u65f6\uff0c\u5de5\u4f5c\u4e5f\u9700\u8981\u66f4\u957f\u65f6\u95f4\uff0c\u800c\u4f01\u4e1a\u901a\u5e38\u65e0\u6cd5\u4e3a\u8d28\u91cf\u53cd\u9988\u53ca\u5176\u5b9e\u73b0\u7559\u51fa\u8db3\u591f\u7684\u65f6\u95f4\u3002<\/p>\n<p>\u5982\u679c\u5f85\u529e\u5217\u8868\u5f88\u957f\u5e76\u4e14\u622a\u6b62\u65e5\u671f\u8f83\u4e3a\u4e25\u683c\uff0c\u89e3\u51b3\u65b9\u6848\u4f3c\u4e4e\u76f8\u5f53\u6709\u9650\u3002 \u4e0d\u8fc7\uff0c\u501f\u52a9\u63d2\u4ef6\u5373\u65f6\u8bbf\u95ee Qodana\uff0c\u60a8\u53ef\u4ee5\u6d88\u9664\u591a\u4efb\u52a1\u5904\u7406\u6240\u4ea7\u751f\u7684\u566a\u97f3\uff0c\u5b8c\u5168\u4fdd\u6301\u4e13\u6ce8\u3002 \u4e24\u79cd\u5de5\u5177\u59cb\u7ec8\u89e6\u624b\u53ef\u53ca \u2013 \u60a8\u65e0\u9700\u79bb\u5f00 IDE\u3002<\/p>\n<p>\u60a8\u8fd8\u53ef\u4ee5\u5728 CI\/CD \u7cfb\u7edf\uff08\u5982 GitHub Actions\uff09\u6216 Qodana Cloud \u4e2d\u8bbf\u95ee Qodana \u62a5\u544a\uff0c\u5e76\u4f7f\u7528 <strong>Open in IDE<\/strong>\uff08\u5728 IDE \u4e2d\u6253\u5f00\uff09\u6309\u94ae\u5feb\u901f\u8bbf\u95ee\u3002 \u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u96c6\u4e2d\u7f16\u7801\u4efb\u52a1\u5e76\u7a81\u51fa\u4ee3\u7801\u8d28\u91cf\uff0c\u540c\u65f6\u4fdd\u6301\u6d41\u7a0b\u7b80\u5355\u3002\u00a0<\/p>\n<p><strong>\u51c6\u5907\u597d\u5f00\u59cb\u4e86\u5417\uff1f\u00a0<\/strong><\/p>\n<p>\u5c1d\u8bd5 Qodana \u7684 <a href=\"https:\/\/qodana.cloud\/onboarding?licensePlan=TRIAL_ULTIMATE&amp;_ga=2.241807554.175129700.1693311161-1316990478.1690210813\" target=\"_blank\" rel=\"noopener\">60 \u5929\u514d\u8d39\u8bd5\u7528<\/a>\uff01 \u6216\u8005\uff0c\u4f7f\u7528 Qodana Ultimate Plus \u7684\u4e94\u6298\u4f18\u60e0\uff0c\u6bcf\u4f4d\u5f00\u53d1\u8005\u4ec5 7.50 \u7f8e\u5143\u8d77\u3002 \u5982\u679c\u60a8\u6709\u4efb\u4f55\u7591\u95ee\u6216\u9700\u8981\u5e2e\u52a9\uff0c\u8bf7\u70b9\u51fb\u5c4f\u5e55\u53f3\u4e0a\u89d2\u7684 <strong>New Issue<\/strong>\uff08\u65b0\u5efa\u95ee\u9898\uff09\u5411 YouTrack \u4e2d\u7684<a href=\"https:\/\/youtrack.jetbrains.com\/issues?q=%23QD&amp;_ga=2.145121588.1686761180.1692011462-1316990478.1690210813&amp;_gl=1*1jzmbap*_ga*MTMxNjk5MDQ3OC4xNjkwMjEwODEz*_ga_9J976DJZ68*MTY5MjAxNDIzNi40Ny4xLjE2OTIwMTQ0ODkuNjAuMC4w\" target=\"_blank\" rel=\"noopener\">\u95ee\u9898\u8ddf\u8e2a\u5668<\/a>\u63d0\u4ea4\u5de5\u5355\uff0c\u6216\u5728\u4e0b\u65b9\u7559\u8a00\u3002 \u60a8\u4e5f\u53ef\u4ee5\u5728 <a href=\"https:\/\/twitter.com\/Qodana\" target=\"_blank\" rel=\"noopener\">Twitter<\/a> \u4e0a\u6216\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u81f3 <a href=\"mailto:qodana-support@jetbrains.com\">qodana-support@jetbrains.com<\/a> \u4e0e\u6211\u4eec\u8054\u7cfb\u3002<\/p>\n<p align=\"center\"><a class=\"jb-download-button\" title=\"\u514d\u8d39\u8bd5\u7528 Qodana\" href=\"https:\/\/www.jetbrains.com\/qodana\" target=\"_blank\" rel=\"noopener noreferrer\"><i class=\"download-icon\"><\/i>\u514d\u8d39\u8bd5\u7528 Qodana\uff01<\/a><\/p>\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u535a\u6587\u82f1\u6587\u539f\u4f5c\u8005\uff1a<\/p>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1297,"featured_media":390455,"comment_status":"closed","ping_status":"closed","template":"","categories":[8269],"tags":[228,3631,6470],"cross-post-tag":[6284],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/qodana\/405195"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/qodana"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/qodana"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1297"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=405195"}],"version-history":[{"count":8,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/qodana\/405195\/revisions"}],"predecessor-version":[{"id":405312,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/qodana\/405195\/revisions\/405312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/390455"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=405195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=405195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=405195"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=405195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}