arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.02651cs.SE
收藏

追踪静态代码警告的演化:最新技术与一种更好的方法

Tracking the Evolution of Static Code Warnings: the State-of-the-Art and a Better Approach

Junjie Li, Jinqiu Yang

AI总结:

本文针对静态代码警告在开发流程中的持续追踪问题,梳理现有方法并提出更精确的警告演化追踪方案,以支持代码审查、持续集成、自动修复和警告优先级排序。

摘要:

静态缺陷检测工具帮助开发者发现代码中的问题,包括不良编程实践和潜在缺陷。近期将静态缺陷检测器集成到现代软件开发工作流(例如代码审查和持续集成)中的努力,已被证明能够更好地促使开发者即时修复所报告的警告。一种适当的追踪所报告警告演化的机制可以更好地支持此类集成。此外,追踪静态代码警告还将惠及许多下游软件工程任务,例如学习自动程序修复的修复模式,以及了解哪些警告更受关注,从而能够自动确定其优先级。另外,追踪工具的使用使开发者能够专注于最新且可采取行动的静态警告,而不是被来自整个项目的数千条警告所淹没。这反过来又提高了静态分析工具的使用率。因此,精确追踪静态缺陷检测器给出的警告,对于进一步提高静态缺陷检测器的使用率至关重要。

英文摘要:

Static bug detection tools help developers detect problems in the code, including bad programming practices and potential defects. Recent efforts to integrate static bug detectors in modern software development workflows, such as in code review and continuous integration, are shown to better motivate developers to fix the reported warnings on the fly. A proper mechanism to track the evolution of the reported warnings can better support such integration. Moreover, tracking the static code warnings will benefit many downstream software engineering tasks, such as learning the fix patterns for automated program repair, and learning which warnings are of more interest, so they can be prioritized automatically. In addition, the utilization of tracking tools enables developers to concentrate on the most recent and actionable static warnings rather than being overwhelmed by the thousands of warnings from the entire project. This, in turn, enhances the utilization of static analysis tools. Hence, precisely tracking the warnings by static bug detectors is critical to improving the utilization of static bug detectors further.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑