Towards a prioritization of code debt: A code smell Intensity Index

Towards a prioritization of code debt: A code smell Intensity Index
复制标题

确定代码债务的优先级:代码气味强度指数

DOI:
10.1109/mtd.2015.7332620
复制
发表时间:
2015
期刊:
2015 IEEE 7th International Workshop on Managing Technical Debt (MTD)
影响因子:
--
通讯作者:
Riccardo Roveda
Riccardo Roveda
中科院分区:
--
文献类型:
--
作者:
F. Fontana;Vincenzo Ferme;M. Zanoni;Riccardo Roveda

文献摘要

被引文献

相似文献

代码气味可以用来捕捉代码衰减的症状和潜在的维护问题,这些问题可以通过应用正确的重构来避免。它们可以被视为技术债务的来源。然而,用于代码气味检测的工具通常会提供太多不同的结果,并识别出许多误报的代码气味实例。事实上,这些工具都是基于初始的、相当非正式的代码气味定义。这代表了用不同的方式解释他们的结果的挑战。在本文中,我们提供了一个强度指数,作为一个估计器来确定最关键的实例,优先检查气味,并潜在地去除它们。我们将Intensity应用于检测六种众所周知的和常见的气味,并从对Qualitas语料库的74个系统进行的分析中报告了它们的Intensity分布,展示了Intensity如何用于优先级代码气味检查。
Code smells can be used to capture symptoms of code decay and potential maintenance problems that can be avoided by applying the right refactoring. They can be seen as a source of technical debt. However, tools for code smell detection often provide far too many and different results, and identify many false positive code smell instances. In fact, these tools are rooted on initial and rather informal code smell definitions. This represents a challenge to interpret their results in different ways. In this paper, we provide an Intensity Index, to be used as an estimator to determine the most critical instances, prioritizing the examination of smells and, potentially, their removal. We apply Intensity on the detection of six well known and common smells and we report their Intensity distribution from an analysis performed on 74 systems of the Qualitas Corpus, showing how Intensity could be used to prioritize code smells inspection.