发明名称 CODE CONSISTENCY CHECKING METHOD
摘要 The present invention belongs to the technical field of software development and maintenance, and more especially related to a code consistency checking method. The consistency checking method of the present invention sustains the code consistency checking and maintenance in large-scale program at the code segment and function level rather than checking of duplicated files only, and maintains the consistency checking of duplicated codes at the development stage in the software development cycle, namely, before test phase, so as to greatly reduce the fix time of errors caused by inconsistency problems.
申请公布号 US2016259710(A1) 申请公布日期 2016.09.08
申请号 US201514969578 申请日期 2015.12.15
申请人 HANGZHOU GLORITY SOFTWARE LIMITED 发明人 XU Qingsong;LUO Huan;CHEN Mingquan
分类号 G06F11/36;G06F9/44;G06F17/30 主分类号 G06F11/36
代理机构 代理人
主权项 1. A code consistency checking method, characterized in that, comprising the following steps: 1) Conduct code duplication detection to the original codes and store the result into the database. 2) Retrieve all file information involving the changed codes according to the code version base before the developer submits the changed codes. 3) Obtain the information of all duplicated code segments contained in the files involving the changed codes according to the retrieval of the changed files in the database as described in Step 1). 4) Compare the changed codes with the duplicated code segments retrieved in Step 3); judge whether the changed codes submitted have changed these duplicated code segments. If the answer is NO, there is no inconsistency problem and the detection passes, if YES, perform the next detection. 5) According to the retrieval of the files where the duplicated code segments changed by the changed codes lie in the database as described in Step 1), if the files retrieved are not within the list of files involving the changed codes, it indicates some of the duplicated code segments before change are not changed, namely inconsistency problem exists. Report inconsistent code change in such case, but if the files retrieved are within the list of files involving the changed codes, it indicates inconsistency problem may exist, conduct the next checking in such case. 6) Compare the changed code with the duplicated code segments in the files within the list of files involving the changed codes retrieved. If the changes of these duplicated code segments are consistent, there is no inconsistency problem. But if the changes of these code segments are inconsistent, there is inconsistency problem. Report inconsistent code change in such a case. 7) Run code duplication detection and update the database after changes are submitted.
地址 Hangzhou CN