{"id":128120,"date":"2018-11-23T10:08:13","date_gmt":"2018-11-23T02:08:13","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=128120"},"modified":"2018-11-19T09:12:28","modified_gmt":"2018-11-19T01:12:28","slug":"sonarqubedevops","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/sonarqubedevops.html","title":{"rendered":"SonarQube \u89e3\u51b3\u4e86\u4ee3\u7801\u8ffd\u8e2a\u95ee\u9898"},"content":{"rendered":"
\u901a\u8fc7\u4e0d\u65ad\u5206\u6790\u4ee3\u7801\u4ee5\u4e86\u89e3\u6f5c\u5728\u7684\u8d28\u91cf\u95ee\u9898\uff0c\u5f00\u6e90\u7684 SonarQube \u9879\u76ee\u652f\u6301\u4e86 DevOps \u7684\u201c\u5c3d\u65e9\u53d1\u5e03\u548c\u7ecf\u5e38\u53d1\u5e03\u201d \u7684\u601d\u7ef4\u6a21\u5f0f\u3002<\/p>\n
\u8d8a\u6765\u8d8a\u591a\u7684\u7ec4\u7ec7\u6b63\u5728\u5b9e\u65bd DevOps \u4ee5\u4fbf\u5728\u901a\u8fc7\u4e2d\u95f4\u5f00\u53d1\u548c\u6d4b\u8bd5\u73af\u5883\u4ee5\u540e\u66f4\u5feb\u66f4\u597d\u7684\u5c06\u65b0\u4ee3\u7801\u5f15\u5165\u5230\u751f\u4ea7\u73af\u5883\u3002\u867d\u7136\u7248\u672c\u63a7\u5236\u3001\u6301\u7eed\u96c6\u6210\u548c\u90e8\u7f72\u4ee5\u53ca\u81ea\u52a8\u5316\u6d4b\u8bd5\u90fd\u5c5e\u4e8e DevOps \u7684\u8303\u7574\uff0c\u4f46\u4ecd\u7136\u5b58\u5728\u4e00\u4e2a\u5173\u952e\u95ee\u9898\uff1a\u7ec4\u7ec7\u5982\u4f55\u91cf\u5316\u4ee3\u7801\u8d28\u91cf\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u90e8\u7f72\u7684\u901f\u5ea6\uff1f<\/p>\n
SonarQube \u662f\u7528\u6765\u586b\u8865\u8fd9\u4e2a\u7a7a\u9699\u7684\u4e00\u79cd\u9009\u62e9\u3002\u5b83\u662f\u4e00\u4e2a\u5f00\u6e90\u5e73\u53f0\uff0c\u901a\u8fc7\u4ee3\u7801\u7684\u81ea\u52a8\u5316\u9759\u6001\u5206\u6790\u4e0d\u65ad\u7684\u68c0\u67e5\u4ee3\u7801\u8d28\u91cf\u3002 SonarQube \u652f\u6301 20 \u591a\u79cd\u8bed\u8a00\u7684\u5206\u6790\uff0c\u5e76\u5728\u5404\u79cd\u7c7b\u578b\u7684\u9879\u76ee\u4e2d\u8f93\u51fa\u548c\u5b58\u50a8\u95ee\u9898\u3002<\/p>\n
SonarQube \u540c\u65f6\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u540c\u65f6\u7ef4\u62a4\u548c\u7ba1\u7406\u4e0d\u540c\u9879\u76ee\u3001\u4e0d\u540c\u4ee3\u7801\u7684\u96c6\u4e2d\u7684\u73af\u5883\u3002\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u9879\u76ee\u5b9a\u5236\u89c4\u5219\u3002\u6301\u7eed\u7684\u68c0\u67e5\u548c\u5206\u6790\u4ee3\u7801\u7684\u5065\u5eb7\u8f68\u8ff9\u3002<\/p>\n
SonarQube \u8fd8\u53ef\u4ee5\u96c6\u6210\u5230\u53ef\u6301\u7eed\u96c6\u6210\u548c\u5f00\u53d1\uff08CI\/CD\uff09\u6d41\u7a0b\u4e2d\uff0c\u534f\u52a9\u548c\u81ea\u52a8\u786e\u5b9a\u4ee3\u7801\u662f\u5426\u4e3a\u751f\u4ea7\u73af\u5883\u505a\u597d\u4e86\u51c6\u5907\u7684\u8fc7\u7a0b\u3002<\/p>\n
<\/p>\n
\u5f00\u7bb1\u5373\u7528\uff0cSonarQube \u53ef\u4ee5\u6d4b\u91cf\u7684\u5173\u952e\u6307\u6807\uff0c\u5305\u62ec\u4ee3\u7801\u9519\u8bef\u3001\u4ee3\u7801\u5f02\u5473code smells\u3001\u5b89\u5168\u6f0f\u6d1e\u548c\u91cd\u590d\u7684\u4ee3\u7801\u3002<\/p>\n
\u56e0\u4e3a\u5b83\u662f\u5f00\u6e90\u7684\uff0c\u6240\u4ee5 SonarQube \u9f13\u52b1\u7528\u6237\u5f00\u53d1\u548c\u63d0\u4f9b\u53ef\u5b9a\u5236\u7684\u9009\u9879\u3002\u76ee\u524d\u6709\u8d85\u8fc7 60 \u4e2a\u63d2\u4ef6 \u53ef\u7528\u4e8e\u589e\u5f3a SonarQube \u5f00\u7bb1\u5373\u7528\u7684\u5206\u6790\u529f\u80fd\u3002<\/p>\n
\u5927\u591a\u6570\u7684\u63d2\u4ef6\u662f\u4e3a\u4e86\u589e\u52a0 SonarQube \u53ef\u4ee5\u5206\u6790\u7684\u7f16\u7a0b\u8bed\u8a00\u7684\u6570\u91cf\u3002\u53e6\u4e00\u4e9b\u63d2\u4ef6\u53ef\u4ee5\u5206\u6790\u4e00\u4e9b\u989d\u5916\u7684\u6307\u6807\u751a\u81f3\u5305\u62ec\u4e00\u4e9b\u663e\u793a\u7684\u4eea\u8868\u76d8\u89c6\u56fe\u3002\u5b9e\u9645\u4e0a\uff0c\u5982\u679c\u7ec4\u7ec7\u9700\u8981\u68c0\u67e5\u4e00\u4e9b\u81ea\u5b9a\u4e49\u6307\u6807\uff0c\u6216\u662f\u60f3\u8981\u5728\u81ea\u5df1\u7684\u4eea\u8868\u76d8\u548c\u4ee5\u7279\u5b9a\u7684\u65b9\u5f0f\u67e5\u770b\u5206\u6790\u6570\u636e\uff0c\u6216\u4f7f\u7528 SonarQube \u4e0d\u652f\u6301\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5219\u53ef\u80fd\u5b58\u5728\u4e00\u4e9b\u81ea\u5b9a\u4e49\u7684\u9009\u9879\u53ef\u4ee5\u4f7f\u7528\u3002\u5982\u679c\u4f60\u60f3\u8981\u7684\u529f\u80fd\u5e76\u4e0d\u652f\u6301\uff0cSonarQube \u6e90\u7801\u7684\u5f00\u653e\u4e5f\u4e3a\u4f60\u81ea\u5df1\u5f00\u53d1\u65b0\u7684\u529f\u80fd\u63d0\u4f9b\u4e86\u53ef\u80fd\u6027\u3002<\/p>\n
\u7528\u6237\u8fd8\u53ef\u4ee5\u5b9a\u5236\u9002\u7528\u4e8e\u6bcf\u79cd\u7279\u5b9a\u7f16\u7a0b\u8bed\u8a00\u5206\u6790\u5668\u7684\u89c4\u5219\u3002\u901a\u8fc7 SonarQube \u7528\u6237\u754c\u9762\uff0c\u53ef\u4ee5\u6309\u8bed\u8a00\u548c\u6309\u9879\u76ee\u9009\u62e9\u548c\u53d6\u6d88\u89c4\u5219\u3002\u8fd9\u4e9b\u4e3a\u7279\u5b9a\u7684\u9879\u76ee\u6307\u5b9a\u7684\u89c4\u5219\uff0c\u53ef\u4ee5\u5f88\u597d\u7684\u5728\u4e00\u4e2a\u96c6\u4e2d\u7684\u4f4d\u7f6e\u7ef4\u62a4\u6240\u6709\u7684\u6570\u636e\u548c\u914d\u7f6e\u3002<\/p>\n
SonarQube \u4e3a\u7ec4\u7ec7\u63d0\u4f9b\u4e86\u4e00\u4e2a\u96c6\u4e2d\u7684\u4f4d\u7f6e\u6765\u7ba1\u7406\u548c\u8ddf\u8e2a\u591a\u4e2a\u9879\u76ee\u4ee3\u7801\u4e2d\u7684\u95ee\u9898\u3002\u5b83\u8fd8\u53ef\u4ee5\u628a\u6301\u7eed\u7684\u68c0\u67e5\u4e0e\u8d28\u91cf\u95e8\u9650\u76f8\u7ed3\u5408\u3002\u4e00\u65e6\u9879\u76ee\u5206\u6790\u8fc7\u4e00\u6b21\u4ee5\u540e\uff0c\u66f4\u8fdb\u4e00\u6b65\u7684\u5206\u6790\u4f1a\u53c2\u8003\u8f6f\u4ef6\u6700\u65b0\u7684\u4fee\u6539\u6765\u66f4\u65b0\u539f\u59cb\u7684\u7edf\u8ba1\u4fe1\u606f\uff0c\u4ee5\u53cd\u6620\u6700\u65b0\u7684\u53d8\u5316\u3002\u8fd9\u4e9b\u8ddf\u8e2a\u53ef\u4ee5\u8ba9\u7528\u6237\u770b\u5230\u95ee\u9898\u89e3\u51b3\u7684\u7a0b\u5ea6\u548c\u901f\u5ea6\u3002\u8fd9\u4e0e \u201c\u5c3d\u65e9\u53d1\u5e03\u5e76\u7ecf\u5e38\u53d1\u5e03\u201d\u4e0d\u8c0b\u800c\u5408\u3002<\/p>\n
\u53e6\u5916\uff0cSonarQube \u53ef\u4f7f\u7528 \u53ef\u6301\u7eed\u96c6\u6210\u6d41\u7a0b\uff0c\u6bd4\u5982\u50cf Hudson \u548c Jenkins \u8fd9\u6837\u7684\u5de5\u5177\u3002\u8fd9\u4e2a\u8d28\u91cf\u95e8\u9650\u53ef\u4ee5\u5f88\u597d\u7684\u53cd\u6620\u4ee3\u7801\u7684\u6574\u4f53\u8fd0\u884c\u72b6\u51b5\uff0c\u5e76\u4e14\u901a\u8fc7 Jenkins \u7b49\u96c6\u6210\u5de5\u5177\uff0c\u5728\u53d1\u5e03\u4ee3\u7801\u5230\u751f\u4ea7\u73af\u5883\u65f6\u62c5\u4efb\u4e00\u4e2a\u91cd\u8981\u7684\u89d2\u8272\u3002<\/p>\n
\u672c\u7740 DevOps \u7684\u7cbe\u795e\uff0c SonarQube \u53ef\u4ee5\u91cf\u5316\u4ee3\u7801\u8d28\u91cf\uff0c\u6765\u8fbe\u5230\u7ec4\u7ec7\u5185\u90e8\u7684\u8981\u6c42\u3002\u4e3a\u4e86\u52a0\u5feb\u4ee3\u7801\u751f\u4ea7\u548c\u53d1\u5e03\u7684\u5468\u671f\uff0c\u7ec4\u7ec7\u5fc5\u987b\u610f\u8bc6\u5230\u5b83\u4eec\u81ea\u5df1\u7684\u6280\u672f\u503a\u52a1\u548c\u8f6f\u4ef6\u95ee\u9898\u3002\u901a\u8fc7\u53d1\u73b0\u8fd9\u4e9b\u4fe1\u606f\uff0c SonarQube \u53ef\u4ee5\u5e2e\u52a9\u7ec4\u7ec7\u66f4\u5feb\u7684\u751f\u6210\u9ad8\u8d28\u91cf\u7684\u8f6f\u4ef6\u3002<\/p>\n
SonarQube \u57fa\u4e8e GUN \u901a\u7528\u516c\u5171\u8bb8\u53ef\u8bc1\u53d1\u5e03\uff0c\u5b83\u7684\u6e90\u7801\u53ef\u4ee5\u5728 GitHub \u4e0a\u67e5\u770b\u3002\u8d8a\u6765\u8d8a\u591a\u7684\u7528\u6237\u5bf9 SonarQube \u7684\u7279\u6027\u548c\u529f\u80fd\u611f\u5174\u8da3\u3002 Twitter \u548c Google \u4e0a\u6709\u6d3b\u8dc3\u7684\u793e\u533a\u3002\u8fd9\u4e9b\u793e\u533a\u4ee5\u53ca SonarQube \u535a\u5ba2 \u5bf9\u4efb\u4f55\u6709\u5174\u8da3\u5f00\u59cb\u548c\u4f7f\u7528 SonarQube \u7684\u4eba\u6709\u5f88\u6709\u5e2e\u52a9\u3002<\/p>\n
via: https:\/\/opensource.com\/article\/17\/10\/sonarqube<\/p>\n
\u4f5c\u8005\uff1aSophie Polson \u8bd1\u8005\uff1aJamkr \u6821\u5bf9\uff1awxy<\/p>\n
\u672c\u6587\u7531 LCTT \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd \u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"
\u901a\u8fc7\u4e0d\u65ad\u5206\u6790\u4ee3\u7801\u4ee5\u4e86\u89e3\u6f5c\u5728\u7684\u8d28\u91cf\u95ee\u9898\uff0c\u5f00\u6e90\u7684 SonarQube \u9879\u76ee\u652f\u6301\u4e86 DevOps \u7684\u201c\u5c3d\u65e9\u53d1\u5e03\u548c\u7ecf\u5e38 […]<\/p>\n","protected":false},"author":317,"featured_media":128122,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-128120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=128120"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128120\/revisions"}],"predecessor-version":[{"id":128251,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128120\/revisions\/128251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/128122"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=128120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=128120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=128120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}