(window.webpackJsonp=window.webpackJsonp||[]).push([[1301],{2716:function(t,a,n){"use strict";n.r(a);var r=n(19),e=Object(r.a)({},(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"维护说明"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#维护说明"}},[t._v("#")]),t._v(" 维护说明")]),t._v(" "),n("p",[t._v("这选择并描述了一些工具来帮助分析代码库的状态并支持其维护。")]),t._v(" "),n("h2",{attrs:{id:"分析-churn"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#分析-churn"}},[t._v("#")]),t._v(" 分析 churn")]),t._v(" "),n("p",[t._v("改动的数量，因此对文件所做的更改次数可以指示哪些文件/部件可能需要重构。")]),t._v(" "),n("p",[t._v("要查找流失指标，可以使用 "),n("a",{attrs:{href:"https://github.com/danmayer/churn",target:"_blank",rel:"noopener noreferrer"}},[t._v("Churn"),n("OutboundLink")],1),t._v(" 等工具：")]),t._v(" "),n("div",{staticClass:"language- extra-class"},[n("pre",{pre:!0,attrs:{class:"language-text"}},[n("code",[t._v("gem install churn\n")])])]),n("p",[t._v("从 "),n("code",[t._v("v1.6.0-rc2")]),t._v(" 开始的示例输出将是：")]),t._v(" "),n("div",{staticClass:"language- extra-class"},[n("pre",{pre:!0,attrs:{class:"language-text"}},[n("code",[t._v('cd src/Firmware\nchurn --start_date "6 months ago"\n**********************************************************************\n* Revision Changes\n**********************************************************************\nFiles\n+------------------------------------------+\n| file                                     |\n+------------------------------------------+\n| src/modules/navigator/mission.cpp        |\n| src/modules/navigator/navigator_main.cpp |\n| src/modules/navigator/rtl.cpp            |\n+------------------------------------------+\n\n\n\n**********************************************************************\n')])])])])}),[],!1,null,null,null);a.default=e.exports}}]);