Causal or Correlational? A Cohort Study on the Effects of Code Smells on Class Change- and Fault-Proneness
Sabato Nocera, Sira Vegas, Giuseppe Scanniello, Massimiliano Di Penta, Natalia Juristo
摘要
Code smells are suboptimal design choices in source code that are conjectured to hinder software maintainability. Previous research has studied the impact of code smells on class change- and fault-proneness, yet, as in most mining studies, it has been limited to highlighting correlations rather than detecting causal relationships.This paper instantiates the cohort study design to software repository studies and presents a cohort study aimed at assessing whether code smells cause an increase or decrease in class change- and fault-proneness.By reusing data from the work of Khomh et al. [41] within a cohort study design, we investigate the causal effect of eleven types of code smells on class change- and fault-proneness.Our results show that, overall, the presence of code smells appears to be causing a significant increase in change-proneness, while, with few exceptions, fault-proneness appears unaffected. This work reinforces the principle that correlation does not imply causation: we partially confirmed some previous results on the effects of code smells, while challenging others. It also lays the groundwork for applying cohort study designs to other software properties and relationships previously studied using observational data.
问问这篇 Paper
问问你的智能体。
Lune 读过与它相关的顶会 Paper,每个回答都会注明依据哪几篇。
相关 Paper
- Paired Code Smells and Test Smells: A Fine-Grained Longitudinal Empirical StudyZiwen CaiISSTA 2026
- On the relationship between refactoring actions and bugs: a differentiated replicationMassimiliano Di Penta, Gabriele Bavota, Fiorella ZampettiFSE 2020 · 被引用 42 次
- The Design Smells Breaking the Boundary between Android Variants and AOSPWuxia Jin, Jiaowei Shang, Jianguo Zheng, Mengjie Sun 等ICSE 2025
- Automated Inline Comment Smell Detection and Repair with Large Language ModelsHatice Kübra Çaglar, Semih Çaglar, Eray TüzünASE 2025 · 被引用 1 次
- Your Build Scripts Stink: The State of Code Smells in Build ScriptsMahzabin Tamanna, Yash Chandrani, Matthew Burrows, Brandon Wroblewski 等ASE 2025 · 被引用 1 次
