Static source code metrics and static analysis warnings for fine-grained just-in-time defect prediction

被引:20
|
作者
Trautsch, Alexander [1 ]
Herbold, Steffen [2 ]
Grabowski, Jens [1 ]
机构
[1] Univ Goettingen, Inst Comp Sci, Gottingen, Germany
[2] Karlsruhe Inst Technol, Inst AIFB, Karlsruhe, Germany
来源
2020 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2020) | 2020年
关键词
Software quality; Software metrics;
D O I
10.1109/ICSME46990.2020.00022
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software quality evolution and predictive models to support decisions about resource distribution in software quality assurance tasks are an important part of software engineering research. Recently, a fine-grained just-in-time defect prediction approach was proposed which has the ability to find bug-inducing files within changes instead of only complete changes. In this work, we utilize this approach and improve it in multiple places: data collection, labeling and features. We include manually validated issue types, an improved SZZ algorithm which discards comments, whitespaces and refactorings. Additionally, we include static source code metrics as well as static analysis warnings and warning density derived metrics as features. To assess whether we can save cost we incorporate a specialized defect prediction cost model. To evaluate our proposed improvements of the fine-grained just-in-time defect prediction approach we conduct a case study that encompasses 38 Java projects, 492,241 file changes in 73,598 commits and spans 15 years. We find that static source code metrics and static analysis warnings are correlated with bugs and that they can improve the quality and cost saving potential of just-in-time defect prediction models.
引用
收藏
页码:127 / 138
页数:12
相关论文
共 42 条
  • [21] Leveraging structural properties of source code graphs for just-in-time bug prediction
    Nadim, Md
    Mondal, Debajyoti
    Roy, Chanchal K.
    AUTOMATED SOFTWARE ENGINEERING, 2022, 29 (01)
  • [22] Parameter-efficient fine-tuning of pre-trained code models for just-in-time defect prediction
    Abu Talib M.
    Bou Nassif A.
    Azzeh M.
    Alesh Y.
    Afadar Y.
    Neural Computing and Applications, 36 (27) : 16911 - 16940
  • [23] Leveraging structural properties of source code graphs for just-in-time bug prediction
    Nadim, Md
    Mondal, Debajyoti
    Roy, Chanchal K.
    arXiv, 2022,
  • [24] Software Defect Prediction Based on Source Code Metrics Time Series
    Pulawski, Lukasz
    TRANSACTIONS ON ROUGH SETS XIII, 2011, 6499 : 104 - 120
  • [25] Source Code Analysis for Static Prediction of Dynamic Memory Usage
    Kim, Sangwho
    Ryou, Jaecheol
    2019 INTERNATIONAL CONFERENCE ON PLATFORM TECHNOLOGY AND SERVICE (PLATCON), 2019, : 46 - 49
  • [26] Code churn: A neglected metric in effort-aware just-in-time defect prediction
    Liu, Jinping
    Zhou, Yuming
    Yang, Yibiao
    Lu, Hongmin
    Xu, Baowen
    11TH ACM/IEEE INTERNATIONAL SYMPOSIUM ON EMPIRICAL SOFTWARE ENGINEERING AND MEASUREMENT (ESEM 2017), 2017, : 11 - 19
  • [27] Boosting multi-objective just-in-time software defect prediction by fusing expert metrics and semantic metrics
    Chen, Xiang
    Xia, Hongling
    Pei, Wenlong
    Ni, Chao
    Liu, Ke
    JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 206
  • [28] Extending Developer Experience Metrics for Better Effort-Aware Just-In-Time Defect Prediction
    Cho, Yeongjun
    Kwon, Jung-Hyun
    Yi, Jooyong
    Ko, In-Young
    IEEE ACCESS, 2022, 10 : 128218 - 128231
  • [29] Using the Support Vector Machine as a Classification Method for Software Defect Prediction with Static Code Metrics
    Gray, David
    Bowes, David
    Davey, Neil
    Sun, Yi
    Christianson, Bruce
    ENGINEERING APPLICATIONS OF NEURAL NETWORKS, PROCEEDINGS, 2009, 43 : 223 - 234
  • [30] An Empirical Study on Bug Severity Estimation Using Source Code Metrics and Static Analysis
    Mashhadi, Ehsan
    Chowdhury, Shaiful
    Modaberi, Somayeh
    Ahmadvand, Hossein
    Hemmati, Hadi
    Uddin, Gias
    SSRN, 2023,