Evolving Trends in Cleanliness of Open Source Projects

In the rapidly evolving landscape of open-source software, code cleanliness has become a critical metric for assessing project quality and maintainability. However, understanding its evolution is essential for identifying long-term sustainability and best practices. This study investigates trends in code cleanliness across representative projects from three major open-source communities: Apache, Google, and Spring. These were selected based on popularity and active commit frequencies. We focus on indicators such as cyclomatic complexity, lines of code per function and file, line length, and naming practices, drawn from project-specific coding guidelines and relevant for evaluating AI-generated code. Using abstract syntax trees and thresholds from best practice to parse positive and negative modifications and integrating differential information from commit logs, we establish precise mappings between functions and code lines before and after modifications. Our analysis shows complexity and lines of code growth as projects mature, largely due to feature growth and faulttolerance logic in distributed systems. Continuous refactoring by key contributors can curb this rise overall. Projects also differ in standards and statement use: conditional and exception-handling statements correlate with higher complexity, while variable declarations and expressions track method size and line length, suggesting disciplined statement choices support cleaner code in practice.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-03-31
DOI
https://doi.org/10.1145/3800680
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

Evolving Trends in Cleanliness of Open Source Projects

Dapeng Yan, Wenjie Yang, Zhikuang Cai
ACM Transactions on Software Engineering and Methodology
Software Engineering Research
article

Evolving Trends in Cleanliness of Open Source Projects

Dapeng Yan, Wenjie Yang, Zhikuang Cai
article en

Abstract

In the rapidly evolving landscape of open-source software, code cleanliness has become a critical metric for assessing project quality and maintainability. However, understanding its evolution is essential for identifying long-term sustainability and best practices. This study investigates trends in code cleanliness across representative projects from three major open-source communities: Apache, Google, and Spring. These were selected based on popularity and active commit frequencies. We focus on indicators such as cyclomatic complexity, lines of code per function and file, line length, and naming practices, drawn from project-specific coding guidelines and relevant for evaluating AI-generated code. Using abstract syntax trees and thresholds from best practice to parse positive and negative modifications and integrating differential information from commit logs, we establish precise mappings between functions and code lines before and after modifications. Our analysis shows complexity and lines of code growth as projects mature, largely due to feature growth and faulttolerance logic in distributed systems. Continuous refactoring by key contributors can curb this rise overall. Projects also differ in standards and statement use: conditional and exception-handling statements correlate with higher complexity, while variable declarations and expressions track method size and line length, suggesting disciplined statement choices support cleaner code in practice.

ACM Transactions on Software Engineering and Methodology
Southwest University (CN), Huawei Technologies (China) (CN), China University of Mining and Technology (CN), Wuhan University (CN), Nanjing University of Posts and Telecommunications (CN), Zhejiang University (CN)
Openalex Percentile: Top 22%
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.

Evolving Trends in Cleanliness of Open Source Projects — Dapeng Yan, Wenjie Yang, et al. · ACM Transactions on Software Engineering and Methodology (2026) | TGRS Research Map | TGRS