An investigation of the relationships between lines of code and defects
The work
| Title | An investigation of the relationships between lines of code and defects |
|---|---|
| Authors | Hongyu Zhang |
| Type | conference paper |
| Year | 2009 |
| Citekey | zhang2009investigation |
Where it appeared
| Published in | 2009 IEEE International Conference on Software Maintenance |
|---|---|
| Publisher | IEEE |
| Pages | 274--283 |
Identifiers
| DOI | 10.1109/icsm.2009.5306304 |
|---|---|
| OpenAlex | W2163499595 |
Access
| Landing page | https://doi.org/10.1109/icsm.2009.5306304 |
|---|
Abstract
It is always desirable to understand the quality of a software system based on static code metrics. In this paper, we analyze the relationships between lines of code (LOC) and defects (including both pre-release and post-release defects). We confirm the ranking ability of LOC discovered by Fenton and Ohlsson. Furthermore, we find that the ranking ability of LOC can be formally described using Weibull functions. We can use defect density values calculated from a small percentage of largest modules to predict the number of total defects accurately. We also find that, given LOC we can predict the number of defective components reasonably well using typical classification techniques. We perform an extensive experiment using the public Eclipse dataset, and replicate the study using the NASA dataset. Our results confirm that simple static code attributes such as LOC can be useful predictors of software quality.
Where this came from
| How it got here | the agent went looking · found via openalex |
|---|---|
| First seen | 2026-08-04 |
| Standing | not denied |
| Approved | 2026-08-07 |
Cite it as
@inproceedings{zhang2009investigation,
title = {An investigation of the relationships between lines of code and defects},
author = {Hongyu Zhang},
year = {2009},
booktitle = {2009 IEEE International Conference on Software Maintenance},
pages = {274--283},
publisher = {IEEE},
doi = {10.1109/icsm.2009.5306304},
url = {https://doi.org/10.1109/icsm.2009.5306304},
}
This record lives at https://refs.drheap.org/zhang2009investigation/ and will keep doing so.