• DocumentCode
    596152
  • Title

    An Empirical Analysis of the Impact of Comment Statements on Fault-Proneness of Small-Size Module

  • Author

    Aman, Hirohisa

  • Author_Institution
    Grad. Sch. of Sci. & Eng., Ehime Univ., Matsuyama, Japan
  • Volume
    1
  • fYear
    2012
  • fDate
    4-7 Dec. 2012
  • Firstpage
    362
  • Lastpage
    367
  • Abstract
    Code size metrics are commonly useful in predicting fault-prone modules, and the larger module tends to be more faulty. In other words, small-size modules are considered to have lower risks of fault. However, since the majority of modules in a software are often small-size, many ``small but faulty´´ modules have been found in the real world. Hence, another fault-prone module prediction method, intended for small-size module, is also required. Such a new method for small-size module should use metrics other than code size since all modules are small size. This paper focuses on ``comments´´ written in the source code from a novel perspective of size-independent metrics, comments have not been drawn much attention in the field of fault-prone module prediction. The empirical study collects 11,512 small-size modules, whose LOC are less than the median, from three major open source software, and analyzes the relationship between the lines of comments and the fault-proneness in the set of small-size modules. The empirical results show the followings: 1) A module in which some comments are written is more likely to be faulty than non-commented ones, the fault rate of commented modules is about 1.8-3.5 times higher than that of non-commented ones. 2) Writing one to four lines of comments would be thresholds of the above tendency.
  • Keywords
    public domain software; software fault tolerance; software metrics; code size metrics; comment statements; fault-prone module prediction method; open source software; small-size module; Educational institutions; Focusing; Java; Market research; Measurement; Open source software; Comment; fault-prone module; metric; small-size module;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference (APSEC), 2012 19th Asia-Pacific
  • Conference_Location
    Hong Kong
  • ISSN
    1530-1362
  • Print_ISBN
    978-1-4673-4930-7
  • Type

    conf

  • DOI
    10.1109/APSEC.2012.108
  • Filename
    6462681