Static Code Analyzer Recommendation via Preference Mining

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ge, Xiuting, Fang, Chunrong, Li, Xuanye, Shang, Ye, Zhang, Mengyao, Pan, Ya
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913625235521536
author Ge, Xiuting
Fang, Chunrong
Li, Xuanye
Shang, Ye
Zhang, Mengyao
Pan, Ya
author_facet Ge, Xiuting
Fang, Chunrong
Li, Xuanye
Shang, Ye
Zhang, Mengyao
Pan, Ya
contents Static Code Analyzers (SCAs) have played a critical role in software quality assurance. However, SCAs with various static analysis techniques suffer from different levels of false positives and false negatives, thereby yielding the varying performance in SCAs. To detect more defects in a given project, it is a possible way to use more available SCAs for scanning this project. Due to producing unacceptable costs and overpowering warnings, invoking all available SCAs for a given project is impractical in real scenarios. To address the above problem, we are the first to propose a practical SCA recommendation approach via preference mining, which aims to select the most effective SCA for a given project. Specifically, our approach performs the SCA effectiveness evaluation to obtain the correspondingly optimal SCAs on projects under test. Subsequently, our approach performs the SCA preference mining via the project characteristics, thereby analyzing the intrinsic relation between projects under test and the correspondingly optimal SCAs. Finally, our approach constructs the SCA recommendation model based on the evaluation data and the associated analysis findings. We conduct the experimental evaluation on three popular SCAs as well as 213 open-source and large-scale projects. The results present that our constructed SCA recommendation model outperforms four typical baselines by 2 ~ 11 times.
format Preprint
id arxiv_https___arxiv_org_abs_2412_18393
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Static Code Analyzer Recommendation via Preference Mining
Ge, Xiuting
Fang, Chunrong
Li, Xuanye
Shang, Ye
Zhang, Mengyao
Pan, Ya
Software Engineering
Static Code Analyzers (SCAs) have played a critical role in software quality assurance. However, SCAs with various static analysis techniques suffer from different levels of false positives and false negatives, thereby yielding the varying performance in SCAs. To detect more defects in a given project, it is a possible way to use more available SCAs for scanning this project. Due to producing unacceptable costs and overpowering warnings, invoking all available SCAs for a given project is impractical in real scenarios. To address the above problem, we are the first to propose a practical SCA recommendation approach via preference mining, which aims to select the most effective SCA for a given project. Specifically, our approach performs the SCA effectiveness evaluation to obtain the correspondingly optimal SCAs on projects under test. Subsequently, our approach performs the SCA preference mining via the project characteristics, thereby analyzing the intrinsic relation between projects under test and the correspondingly optimal SCAs. Finally, our approach constructs the SCA recommendation model based on the evaluation data and the associated analysis findings. We conduct the experimental evaluation on three popular SCAs as well as 213 open-source and large-scale projects. The results present that our constructed SCA recommendation model outperforms four typical baselines by 2 ~ 11 times.
title Static Code Analyzer Recommendation via Preference Mining
topic Software Engineering
url https://arxiv.org/abs/2412.18393