On the correlation between architectural smells and static analysis warnings
Open Access
- 13 October 2025
- journal article
- research article
- Published by Springer Nature in Software Quality Journal
- Vol. 33 (4) , 33
Abstract
Software quality assurance is essential during software development and maintenance. Static Analysis Tools (SAT) are widely used for assessing code quality. Architectural smells are becoming more daunting to address and evaluate among quality issues. We aim to understand the relationships between Static Analysis Warnings (“warnings”) and Architectural Smells (“smell”) to guide developers/maintainers in focusing their effort on warnings more prone to co-occurring with smell. We performed an empirical study on 103 Java projects totaling 72 million LOC belonging to projects from a vast set of domains, and 785 warnings were detected by three SAT, Checkstyle, Findbugs, PMD, SonarQube, and 4 architectural smells were detected by the ARCAN tool. We analyzed how warnings influence smell presence. Finally, we proposed a smell remediation effort prioritization based on warning severity and warning proneness to specific smells. Our study reveals a moderate correlation between warnings and smells. Different combinations of SATs and warnings significantly affect smell occurrence, with certain warnings more Likely to co-occur with specific smells. Conversely, 33.79% of warnings are “non-co-occurring” with any of the smells in our dataset. This provides an early indicator for potential architectural concerns before resource-intensive architectural analysis is performed. Practitioners can ignore about a third of warnings and focus on those most likely to be associated with smells. Prioritizing smell remediation based on warning severity or warning proneness to specific smells results in effective rankings like those based on smell severity. While not a substitute for specialized tools like ARCAN, warning-based prioritization provides a pragmatic bridge between low-level warnings and high-level architectural issues, particularly useful in contexts lacking full architectural visibility.Keywords
Funding Information
- University of Oulu
This publication has 95 references indexed in Scilit:
- On the evolution and impact of architectural smells—an industrial case studyEmpirical Software Engineering, 2022
- Learning to recognize actionable static code warnings (is intrinsically easy)Empirical Software Engineering, 2021
- A longitudinal study of static analysis warning evolution and the effects of PMD on software quality in Apache open source projectsEmpirical Software Engineering, 2020
- An Initial Study on the Association Between Architectural Smells and Degradation2020
- How developers engage with static analysis tools in different contextsEmpirical Software Engineering, 2019
- A Survey on Code Analysis Tools for Software Maintenance Prediction2019
- Identifying and Prioritizing Architectural Debt Through Architectural Smells: A Case Study in a Large Software Company2018
- Experimentation in Software Engineering2012
- Guidelines for conducting and reporting case study research in software engineeringEmpirical Software Engineering, 2008
- Comparing Bug Finding Tools with Reviews and Tests2005