Erlang码库中最高可靠度的牛弓码检测
Detecting Oxbow Code in Erlang Codebases with the Highest Degree of Certainty
摘要:
不再需要的源代码的存在是项目可维护性的障碍。项目规模越大、寿命越长,以不同形式积累死代码的可能性就越高。手动检测未使用的代码是耗时的,繁琐的,容易出错的,并且需要对代码库有很深的了解。在这篇文章中,我们研究了Erlang项目中可能出现的死代码(特别是牛轭代码),并制定了高精度识别它们的规则。我们还提出了一个实现这些规则的开源静态分析器,允许自动检测和自信地删除Erlang代码库中的oxbow代码,积极地提高其质量和可维护性。
英文摘要:
The presence of source code that is no longer needed is a handicap to project maintainability. The larger and longer-lived the project, the higher the chances of accumulating dead code in its different forms. Manually detecting unused code is time-consuming, tedious, error-prone, and requires a great level of deep knowledge about the codebase. In this paper, we examine the kinds of dead code (specifically, oxbow code) that can appear in Erlang projects, and formulate rules to identify them with high accuracy. We also present an open-source static analyzer that implements these rules, allowing for the automatic detection and confident removal of oxbow code in Erlang codebases, actively contributing to increasing their quality and maintainability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。