RefFilter:通过感知重构的静态分析改进语义冲突检测
RefFilter: Improving Semantic Conflict Detection via Refactoring-Aware Static Analysis
AI总结:
针对协作软件开发中语义冲突检测误报率高的问题,提出感知重构的工具RefFilter,通过自动识别并剔除行为保持的代码重构降低误报,实验验证其精度提升显著,可有效优化合并支持。
摘要:
在协作软件开发中,检测语义干扰仍是一项挑战。近期的轻量级静态分析技术相比基于SDG(系统依赖图)的方法提升了效率,但仍存在较高的误报率。导致这些误报的一个关键原因是存在行为保持的代码重构,现有技术无法有效将这类重构与影响行为、可能干扰他人的代码变更区分开。为解决这一问题,我们提出了RefFilter——一款感知重构的语义干扰检测工具。它在现有静态技术的基础上,结合自动化重构检测来提升精度。RefFilter会从报告中剔除行为保持的重构,在保留检测覆盖率的同时减少误报。为评估其有效性与可扩展性,我们使用了两个数据集:一个包含99个场景与基准真值的标注数据集,以及我们构建的包含1087个多样合并场景的全新数据集。实验结果显示,RefFilter在标注数据集上减少了近32%的误报。尽管误报的减少伴随着不显著的漏报增加,但精度的整体提升远大于召回率上的微小权衡。这些研究结果表明,感知重构的干扰检测是改进现代开发工作流中合并支持的实用且有效的策略。
英文摘要:
Detecting semantic interference remains a challenge in collaborative software development. Recent lightweight static analysis techniques improve efficiency over SDG-based methods, but they still suffer from a high rate of false positives. A key cause of these false positives is the presence of behavior-preserving code refactorings, which current techniques cannot effectively distinguish from changes that impact behavior and can interfere with others. To handle this problem we present RefFilter, a refactoring-aware tool for semantic interference detection. It builds on existing static techniques by incorporating automated refactoring detection to improve precision. RefFilter discards behavior-preserving refactorings from reports, reducing false positives while preserving detection coverage. To evaluate effectiveness and scalability, use two datasets: a labeled dataset with 99 scenarios and ground truth, and a novel dataset of 1,087 diverse merge scenarios that we have built. Experimental results show that RefFilter reduces false positives by nearly 32% on the labeled dataset. While this reduction comes with a non significant increase in false negatives, the overall gain in precision significantly outweighs the minor trade-off in recall. These findings demonstrate that refactoring-aware interference detection is a practical and effective strategy for improving merge support in modern development workflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。