Extending the Lines of Code Metric for Evaluating Software Quality

The Lines of Code (LOC) metric is a traditional and widely used measure of software size, commonly employed to estimate project status and quality. However, the lack of a standardized method for calculating LOC has led to the development of more refined sub-metrics, including Logical Lines of Code (LLOC), Executable Lines of Code (ELOC), Comment Lines of Code (CLOC), Blank Lines of Code (BLOC), and Documented Lines of Code (DLOC). This paper explores each of these metrics in detail. LLOC captures only lines relevant to system functionality, while ELOC focuses solely on executable statements. CLOC and BLOC contribute to code readability and structural clarity. DLOC facilitates structured documentation to enhance code comprehensibility. Examples and counting methodologies for each metric are presented, along with recommended proportional distributions, emphasizing the importance of metric balance in high-quality software development.

Authors

Publication Details

Journal
International journal of engineering and science invention
Published
2025-04-01
DOI
https://doi.org/10.35629/6734-1404113116
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Extending the Lines of Code Metric for Evaluating Software Quality

Paata Jokhadze, Levani Mtivlishvili
International journal of engineering and science invention
Software Engineering Research
article

Extending the Lines of Code Metric for Evaluating Software Quality

Paata Jokhadze, Levani Mtivlishvili
article en

Abstract

The Lines of Code (LOC) metric is a traditional and widely used measure of software size, commonly employed to estimate project status and quality. However, the lack of a standardized method for calculating LOC has led to the development of more refined sub-metrics, including Logical Lines of Code (LLOC), Executable Lines of Code (ELOC), Comment Lines of Code (CLOC), Blank Lines of Code (BLOC), and Documented Lines of Code (DLOC). This paper explores each of these metrics in detail. LLOC captures only lines relevant to system functionality, while ELOC focuses solely on executable statements. CLOC and BLOC contribute to code readability and structural clarity. DLOC facilitates structured documentation to enhance code comprehensibility. Examples and counting methodologies for each metric are presented, along with recommended proportional distributions, emphasizing the importance of metric balance in high-quality software development.

International journal of engineering and science inventionVol. 14(4)
Openalex Percentile: Top 86%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.