Code smells in pull requests: An exploratory study (bibtex)
by Muhammad Ilyas Azeem, Saad Shafiq, Atif Mashkoor, Alexander Egyed
Abstract:
The quality of a pull request is the primary factor integrators consider for its acceptance or rejection. Code smells indicate sub-optimal design or implementation choices in the source code that often lead to a fault-prone outcome, threatening the quality of pull requests. This study explores code smells in 21k pull requests from 25 popular Java projects. We find that both accepted (37%) and rejected (44%) pull requests have code smells, affected mainly by god classes and long methods. Besides, we observe that smelly pull requests are more complex and challenging to understand as they have significantly large sizes, long latency times, more discussion and review comments, and are submitted by contributors with less experience. Our results show that features used in previous studies for pull request acceptance prediction could be potentially employed to predict smell in incoming pull requests. We propose a dynamic approach to predict the presence of such code smells in the newly added pull requests. We evaluate our approach on a dataset of 25 Java projects extracted from GitHub. We further conduct a benchmark study to compare the performance of eight machine learning classifiers. Results of the benchmark study show that XGBoost is the best-performing classifier for smell prediction.
Reference:
Code smells in pull requests: An exploratory study (Muhammad Ilyas Azeem, Saad Shafiq, Atif Mashkoor, Alexander Egyed), In Softw. Pract. Exp., volume 54, 2024.
Bibtex Entry:
@Article{Azeem2024,
  author    = {Muhammad Ilyas Azeem and Saad Shafiq and Atif Mashkoor and Alexander Egyed},
  journal   = {Softw. Pract. Exp.},
  title     = {Code smells in pull requests: An exploratory study},
  year      = {2024},
  number    = {3},
  pages     = {419--436},
  volume    = {54},
  abstract  = {The quality of a pull request is the primary factor integrators consider for its acceptance or rejection. Code smells indicate sub-optimal design or implementation choices in the source code that often lead to a fault-prone outcome, threatening the quality of pull requests. This study explores code smells in 21k pull requests from 25 popular Java projects. We find that both accepted (37%) and rejected (44%) pull requests have code smells, affected mainly by god classes and long methods. Besides, we observe that smelly pull requests are more complex and challenging to understand as they have significantly large sizes, long latency times, more discussion and review comments, and are submitted by contributors with less experience. Our results show that features used in previous studies for pull request acceptance prediction could be potentially employed to predict smell in incoming pull requests. We propose a dynamic approach to predict the presence of such code smells in the newly added pull requests. We evaluate our approach on a dataset of 25 Java projects extracted from GitHub. We further conduct a benchmark study to compare the performance of eight machine learning classifiers. Results of the benchmark study show that XGBoost is the best-performing classifier for smell prediction.},
  bibsource = {dblp computer science bibliography, https://dblp.org},
  biburl    = {https://dblp.org/rec/journals/spe/AzeemSME24.bib},
  doi       = {10.1002/SPE.3283},
  timestamp = {Sat, 16 Mar 2024 15:10:22 +0100},
  url       = {https://doi.org/10.1002/spe.3283},
}
Powered by bibtexbrowser