Detecting and Visualizing Change Smells Based on Revision History and Code Hunk's Lifecycle

この論文にアクセスする

この論文をさがす

著者

抄録

Change history in project revisions provides helpful information on handling bugs. Existing studies on predicting bugs mainly focus on resulting bug patterns, not these change patterns. When a code hunk is copied onto several files, the set of original and copied hunks often need to be consistently maintained. We assume that it is a normal state when all of hunks survive or die in a specific revision. When partial change occurs on some duplicated hunks, they are regarded as suspicious hunks. Based on these assumptions, suspicious cases can be predicted and the project's developers can be alerted. In this paper, we propose a practical approach to detect various change smells based on revision history and code hunk tracking. The change smells are suspicious change patterns that can result in potential bugs, such as <i>partial death of hunks</i>, <i>missed refactoring or fix</i>, <i>backward or late change</i>. To detect these change smells, three kinds of hunks - <i>add, delete,</i> and <i>modify</i> - are tracked and analyzed by an automated tool. Several visualized graphs for each type have been suggested to improve the applicability of the proposed technique. We also conducted experiments on large-scale open projects. The case study results show the applicability of the proposed approach.

収録刊行物

  • IEICE transactions on information and systems

    IEICE transactions on information and systems 94(8), 1575-1589, 2011-08-01

    一般社団法人 電子情報通信学会

参考文献:  29件中 1-29件 を表示

各種コード

  • NII論文ID(NAID)
    10030192461
  • NII書誌ID(NCID)
    AA10826272
  • 本文言語コード
    ENG
  • 資料種別
    ART
  • ISSN
    09168532
  • データ提供元
    CJP書誌  J-STAGE 
ページトップへ