首页> 外文会议>IEEE/ACM International Conference on Program Comprehension;International Conference on Software Engineering >Understanding Code Smell Detection via Code Review: A Study of the OpenStack Community
【24h】

Understanding Code Smell Detection via Code Review: A Study of the OpenStack Community

机译:通过代码审查了解代码气味检测:OpenStack社区的研究

获取原文

摘要

Code review plays an important role in software quality control. A typical review process would involve a careful check of a piece of code in an attempt to find defects and other quality issues/violations. One type of issues that may impact the quality of the software is code smells - i.e., bad programming practices that may lead to defects or maintenance issues. Yet, little is known about the extent to which code smells are identified during code reviews. To investigate the concept behind code smells identified in code reviews and what actions reviewers suggest and developers take in response to the identified smells, we conducted an empirical study of code smells in code reviews using the two most active OpenStack projects (Nova and Neutron). We manually checked 19,146 review comments obtained by keywords search and random selection, and got 1,190 smell-related reviews to study the causes of code smells and actions taken against the identified smells. Our analysis found that 1) code smells were not commonly identified in code reviews, 2) smells were usually caused by violation of coding conventions, 3) reviewers usually provided constructive feedback, including fixing (refactoring) recommendations to help developers remove smells, and 4) developers generally followed those recommendations and actioned the changes. Our results suggest that 1) developers should closely follow coding conventions in their projects to avoid introducing code smells, and 2) review-based detection of code smells is perceived to be a trustworthy approach by developers, mainly because reviews are context-sensitive (as reviewers are more aware of the context of the code given that they are part of the project’s development team).
机译:代码审查在软件质量控制中起着重要作用。典型的审查过程将涉及仔细检查一段代码,以试图找到缺陷和其他质量问题/违规行为。可能影响软件质量的一种问题是代码闻 - 即,可能导致缺陷或维护问题的不良编程实践。然而,几乎是众所周知的代码闻名期间在代码审查期间识别的程度。为了调查根据代码审查和行动审查者所确定的代码闻闻的概念,审查员建议和开发人员应对所确定的嗅觉,我们使用两个最具活跃的OpenStack项目(Nova和Neutron)进行了编码闻名的代码闻闻的实证研究。我们手动检查了19,146次通过关键字搜索和随机选择获得的评论,并获得了1,190个嗅觉,研究了代码闻起法的原因和针对所识别的嗅觉采取的行动。我们的分析发现,1)代码气味在代码点评中不常见,2)嗅觉通常是由于违反编码公约而引起的,3)审稿人通常提供建设性的反馈,包括修复(重构)建议,帮助开发人员去除嗅觉,4 )开发人员通常遵循这些建议并采取了这种变化。我们的结果表明,1)开发人员应密切关注其项目中的编码公约,以避免介绍代码闻,而2)基于审查的守则闻名是开发人员的可信度的方法,主要是因为审查是上下文敏感的方式(如审阅者更加了解代码的上下文,因为它们是项目的开发团队的一部分)。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号