A Flexible Code Review Framework for Combining Defect Detection and Review Comments

Author:

Chen Xi123ORCID,Dong Lei12,Li Hong-Chang12ORCID,Yao Xin-Peng12,Wang Peng12,Yao Shuang4

Affiliation:

1. Key Laboratory of Civil Aircraft Airworthiness Technology, Tianjin 300300, China

2. School of Safety Science and Engineering, Civil Aviation University of China, Tianjin 300300, China

3. Key Laboratory of Civil Aviation Intelligent Flight, Beijing 100085, China

4. School of Artificial Intelligence, Hebei University of Technology, Tianjin 300130, China

Abstract

Defects and errors in code are different in that they are not detected by editors or compilers but pose a potential risk to software operation. For safety-critical software such as airborne software, the code review process is necessary to ensure the proper operation of software applications and even an aircraft. The traditional manual review method can no longer meet the current needs with the dramatic increase in code sizes and variety. To this end, we propose Deep Reviewer, a general and flexible code review framework that automatically detects code defects and correlates the review comments of the defects. The framework first preprocesses the data using several methods, including the proposed D2U flow. Then, features are extracted and matched by the detector, which contains a pair of twin LSTM models, one for code defect type detection and the other for review comment retrieval. Finally, the review comment output function is implemented based on the masks generated by the code defect types. The method is validated using a large public dataset, SARD. For the binary-classification task, the test results of the proposed are 98.68% and 98.67% in terms of precision and F1 score, respectively. For the multi-classification task, the proposed framework shows a significant advantage over other methods.

Funder

Tianjin Education Commission Scientific Research

Fundamental Research Funds for the Central Universities

Key Laboratory of Civil Aviation Intelligent Flight Open Subject

Publisher

MDPI AG

Subject

Aerospace Engineering

Reference33 articles.

1. Lions, J.L., and Lennart Lübeck, L. (1996). ARIANE 5 Failure-Full Report, European Space Agency.

2. Sadowski, C., Söderberg, E., Church, L., Sipko, M., and Bacchelli, A. (June, January 27). Modern Code Review: A Case Study at Google. Proceedings of the IEEE/ACM 40th International Conference on Software Engineering: Software Engineering in Practice Track (ICSE-SEIP), Gothenburg, Sweden.

3. A systematic literature review of actionable alert identification techniques for automated static code analysis;Heckman;Inf. Softw. Technol.,2011

4. Zhioua, Z., Short, S., and Roudier, Y. (2014, January 21–25). Static code analysis for software security verification: Problems and approaches. Proceedings of the 38th International Computer Software and Applications Conference Workshops, Vasteras, Sweden.

5. Survey of Approaches for Postprocessing of Static Analysis Alarms;Muske;ACM Comput. Surv. (CSUR),2022

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Development Trend of Code Defect Detection Technology Based on Natural Language Processing;2024 IEEE 13th International Conference on Communication Systems and Network Technologies (CSNT);2024-04-06

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3