Background. Developers use Automated Static Analysis Tools (ASATs) to control for potential quality issues in source code, including defects and technical debt. Tool vendors have devised quite a number of tools, which makes it harder for practitioners to select the most suitable one for their needs. To better support developers, researchers have been conducting several studies on ASATs to favor the understanding of their actual capabilities. Aims. Despite the work done so far, there is still a lack of knowledge regarding (1) which source quality problems can actually be detected by static analysis tool warnings, (2) what is their agreement, and (3) what is the precision of their recommendations. We aim at bridging this gap by proposing a large-scale comparison of six popular static analysis tools for Java projects: Better Code Hub, CheckStyle, Coverity Scan, Findbugs, PMD, and SonarQube. Method. We analyze 47 Java projects and derive a taxonomy of warnings raised by 6 state-of-the-practice ASATs. To assess their agreement, we compared them by manually analyzing - at line-level - whether they identify the same issues. Finally, we manually evaluate the precision of the tools. Results. The key results report a comprehensive taxonomy of ASATs warnings, show little to no agreement among the tools and a low degree of precision. Conclusions. We provide a taxonomy that can be useful to researchers, practitioners, and tool vendors to map the current capabilities of the tools. Furthermore, our study provides the first overview on the agreement among different tools as well as an extensive analysis of their precision.
翻译:开发者使用自动静态分析工具(ASATs)控制源代码中的潜在质量问题,包括缺陷和技术债务; 工具供应商已经设计了许多工具,使从业人员更难选择最适合其需要的工具; 为了更好地支持开发者,研究人员一直在对反静态分析工具进行若干项研究,以促进对其实际能力的理解。 目标。 尽管迄今已经做了工作,但仍缺乏以下知识:(1) 哪些源的质量问题可以通过静态分析工具警告实际检测到,(2) 其协议是什么,(3) 其建议是否准确。 我们的目标是通过大规模比较爪哇项目六种流行的静态分析工具来弥合这一差距:更好的代码枢纽、 CheckStyle、Coverty Scan、Findbugs、PMD和SonQube。 方法。 我们分析了47个Java项目,并得出了6个做法ASAT公司提出的警告的分类。 为了评估它们的协议,我们用手工分析方法比较了它们的协议―― 是否在一线层次上确定了同样的问题。 最后,我们用手动的方法评估了六种税收分析工具的精确度。