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.


翻译:不再需要源代码的存在是预测可维护性的一个障碍。 项目越大、时间越长,以不同形式积累死代码的可能性就越大。 手动检测未使用的代码耗时、乏味、容易出错,需要对代码库有高度的深入了解。 在本文中,我们检查了Erlanng项目中可能出现的死代码的类型(具体来说是牛鲍代码 ), 并制定规则, 以便非常精确地识别这些代码。 我们还提出了一个开放源静态分析器, 用于执行这些规则, 允许在Erlan 代码库中自动检测并自信地移除牛标码, 积极帮助提高它们的质量和可维护性。

0
下载
关闭预览

相关内容

[综述]深度学习下的场景文本检测与识别
专知会员服务
78+阅读 · 2019年10月10日
【SIGGRAPH2019】TensorFlow 2.0深度学习计算机图形学应用
专知会员服务
41+阅读 · 2019年10月9日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
利用动态深度学习预测金融时间序列基于Python
量化投资与机器学习
18+阅读 · 2018年10月30日
Soft-NMS – Improving Object Detection With One Line of Code
统计学习与视觉计算组
6+阅读 · 2018年3月30日
carla 学习笔记
CreateAMind
9+阅读 · 2018年2月7日
【推荐】用Python/OpenCV实现增强现实
机器学习研究会
15+阅读 · 2017年11月16日
Does Commonsense help in detecting Sarcasm?
Arxiv
0+阅读 · 2021年9月17日
Arxiv
13+阅读 · 2021年3月3日
AutoML: A Survey of the State-of-the-Art
Arxiv
75+阅读 · 2019年8月14日
Arxiv
4+阅读 · 2018年6月14日
VIP会员
相关资讯
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
利用动态深度学习预测金融时间序列基于Python
量化投资与机器学习
18+阅读 · 2018年10月30日
Soft-NMS – Improving Object Detection With One Line of Code
统计学习与视觉计算组
6+阅读 · 2018年3月30日
carla 学习笔记
CreateAMind
9+阅读 · 2018年2月7日
【推荐】用Python/OpenCV实现增强现实
机器学习研究会
15+阅读 · 2017年11月16日
相关论文
Does Commonsense help in detecting Sarcasm?
Arxiv
0+阅读 · 2021年9月17日
Arxiv
13+阅读 · 2021年3月3日
AutoML: A Survey of the State-of-the-Art
Arxiv
75+阅读 · 2019年8月14日
Arxiv
4+阅读 · 2018年6月14日
Top
微信扫码咨询专知VIP会员