Can Program Analysis Tools Find More Code Review Defects?
收藏DataCite Commons2021-11-07 更新2024-08-18 收录
下载链接:
https://figshare.com/articles/dataset/Can_Program_Analysis_Tools_Find_More_Code_Review_Defects_/14925222
下载链接
链接失效反馈官方服务:
资源简介:
Program analysis tools find defects in code, checking code against rules to reveal potential defects. Many studies have evaluated these tools by measuring their ability to detect known defects in code. But these studies measure the current state of tools rather than their future potential to find more defects. To investigate the prospects for tools to find more defects, we conducted a study where we examined the potential to create rules, which might be checked by tools, which would prevent defects found in code review. We first gathered a corpus of 1323 defects found through code review. Through a qualitative analysis process, for each defect we identified a violated rule and the type of program analysis tool (PAT) which might check this rule.We found that PATs might, in principle, be used to detect as many as 76% of code review defects, considerably more than current tools have been demonstrated to successfully detect. Among a variety of types of program analysis tools, Style Checkers and AST Pattern Checkers had the broadest coverage of defects, each with the potential to detect 25% of all code review defects. To detectable defects, existing tools require features like supporting custom and more complex rules. Defects not detectable by PATs require human judgement and are violations of rules lacking formalism.
提供机构:
figshare
创建时间:
2021-07-07



