Extending the Lines of Code Metric for Evaluating Software Quality
Paata Jokhadze, Levani Mtivlishvili · International journal of engineering and science invention · 2025
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.