Defect prediction with bad smells in code
Jaros{\l}aw Hryszko, Lech Madeyski, Marta D\k{a}browska and, Piotr Konopka

TL;DR
This study investigates whether adding code smell metrics improves defect prediction in software development, finding minimal gains when combined with basic metrics but high accuracy using only code smell metrics.
Contribution
It demonstrates that code smell metrics alone can effectively predict defects, though combining them with basic metrics yields only marginal improvements.
Findings
Adding code smell metrics slightly improves prediction accuracy.
Code smell metrics alone achieve high defect prediction accuracy.
Dataset extension with code smells does not significantly enhance effectiveness.
Abstract
Background: Defect prediction in software can be highly beneficial for development projects, when prediction is highly effective and defect-prone areas are predicted correctly. One of the key elements to gain effective software defect prediction is proper selection of metrics used for dataset preparation. Objective: The purpose of this research is to verify, whether code smells metrics, collected using Microsoft CodeAnalysis tool, added to basic metric set, can improve defect prediction in industrial software development project. Results: We verified, if dataset extension by the code smells sourced metrics, change the effectiveness of the defect prediction by comparing prediction results for datasets with and without code smells-oriented metrics. In a result, we observed only small improvement of effectiveness of defect prediction when dataset extended with bad smells metrics was used:…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Reliability and Analysis Research · Advanced Malware Detection Techniques
