基于偏好挖掘的静态代码分析器推荐
Static Code Analyzer Recommendation via Preference Mining
AI总结:
针对静态代码分析器误报漏报导致性能差异且全量调用成本过高的问题,首次提出基于偏好挖掘的SCA推荐方法,通过评估SCA有效性与挖掘项目特征构建推荐模型,其性能显著优于4个典型基线2至11倍。
摘要:
静态代码分析器(Static Code Analyzers, SCAs)在软件质量保证中发挥了关键作用。然而,采用各种静态分析技术的 SCAs 存在不同程度的假阳性和假阴性,从而导致 SCAs 的性能存在差异。为了检测给定项目中的更多缺陷,一种可行的方法是使用更多可用的 SCAs 来扫描该项目。由于会产生无法接受的成本和过多的警告,在实际场景中为给定项目调用所有可用的 SCAs 是不切实际的。为了解决上述问题,我们首次提出了一种基于偏好挖掘的实用 SCA 推荐方法,旨在为给定项目选择最有效的 SCA。具体而言,我们的方法执行 SCA 有效性评估,以在测试项目上获得相应的最优 SCAs。随后,我们的方法基于项目特征执行 SCA 偏好挖掘,从而分析测试项目与相应最优 SCAs 之间的内在关系。最后,我们的方法基于评估数据和相关的分析结果构建了 SCA 推荐模型。我们在 3 种流行的 SCAs 以及 213 个开源大规模项目上进行了实验评估。结果表明,我们构建的 SCA 推荐模型的性能比 4 个典型基线高出 2 到 11 倍。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。