首页> 外文会议>IEEE/ACM International Conference on Program Comprehension >A Large-Scale Empirical Study on Code-Comment Inconsistencies
【24h】

A Large-Scale Empirical Study on Code-Comment Inconsistencies

机译:代码评论不一致的大规模实证研究

获取原文

摘要

Code comments are a primary means to document source code. Keeping comments up-to-date during code change activities requires substantial time and attention. For this reason, researchers have proposed methods to detect code-comment inconsistencies (i.e., comments that are not kept in sync with the code they document) and studies have been conducted to investigate this phenomenon. However, these studies were performed at a small scale, relying on quantitative analysis, thus limiting the empirical knowledge about code-comment inconsistencies. We present the largest study at date investigating how code and comments co-evolve. The study has been performed by mining 1.3 Billion AST-level changes from the complete history of 1,500 systems. Moreover, we manually analyzed 500 commits to define a taxonomy of code-comment inconsistencies fixed by developers. Our analysis discloses the extent to which different types of code changes (e.g., change of selection statements) trigger updates to the related comments, identifying cases in which code-comment inconsistencies are more likely to be introduced. The defined taxonomy categorizes the types of inconsistencies fixed by developers. Our results can guide the development of tools aimed at detecting and fixing code-comment inconsistencies.
机译:代码注释是文件源代码的主要方法。在代码更改活动期间保持评论,需要大量的时间和关注。因此,研究人员已经提出了检测代码评论不一致的方法(即,没有与他们文件的代码同步的评论)以及研究了研究这种现象。然而,这些研究是以小规模进行的,依赖于定量分析,从而限制了关于代码评论不一致的经验知识。我们在日期提出了最大的研究调查编码和评论如何共同发展。这项研究已经通过从1,500个系统的完整历史中挖掘13亿个AST级别的变化进行。此外,我们手动分析了500名宣告,以定义开发人员固定的代码评论不一致的分类。我们的分析揭示了不同类型的代码更改的程度(例如,选择语句的变化)触发与相关评论的更新,识别代码评论不一致的情况。定义的分类系统对开发人员修复的不一致类型进行分类。我们的结果可以指导开发旨在检测和修复代码评论不一致的工具。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号