Analyzing the State of Static Analysis: A Large-Scale Evaluation in Open Source Software

被引:135
作者
Beller, Moritz [1 ]
Bholanath, Radjino [1 ]
McIntosh, Shane [2 ]
Zaidman, Andy [1 ]
机构
[1] Delft Univ Technol, NL-2600 AA Delft, Netherlands
[2] McGill Univ, Montreal, PQ H3A 2T5, Canada
来源
2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1 | 2016年
关键词
D O I
10.1109/SANER.2016.105
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The use of automatic static analysis has been a software engineering best practice for decades. However, we still do not know a lot about its use in real-world software projects: How prevalent is the use of Automated Static Analysis Tools (ASATs) such as FindBugs and JSHint? How do developers use these tools, and how does their use evolve over time? We research these questions in two studies on nine different ASATs for Java, JavaScript, Ruby, and Python with a population of 122 and 168,214 open-source projects. To compare warnings across the ASATs, we introduce the General Defect Classification (GDC) and provide a grounded-theory-derived mapping of 1,825 ASAT-specific warnings to 16 top-level GDC classes. Our results show that ASAT use is widespread, but not ubiquitous, and that projects typically do not enforce a strict policy on ASAT use. Most ASAT configurations deviate slightly from the default, but hardly any introduce new custom analyses. Only a very small set of default ASAT analyses is widely changed. Finally, most ASAT configurations, once introduced, never change. If they do, the changes are small and have a tendency to occur within one day of the configuration's initial introduction.
引用
收藏
页码:470 / 481
页数:12
相关论文
共 56 条
[11]  
Burn O., 2014, CHECKSTYLE CHECKSTYL
[12]   ORTHOGONAL DEFECT CLASSIFICATION - A CONCEPT FOR IN-PROCESS MEASUREMENTS [J].
CHILLAREGE, R ;
BHANDARI, IS ;
CHAAR, JK ;
HALLIDAY, MJ ;
MOEBUS, DS ;
RAY, BK ;
WONG, MY .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1992, 18 (11) :943-956
[13]   Static correspondence and correlation between field defects and warnings reported by a bug finding tool [J].
Couto, Cesar ;
Montandon, Joao Eduardo ;
Silva, Christofer ;
Valente, Marco Tulio .
SOFTWARE QUALITY JOURNAL, 2013, 21 (02) :241-257
[14]  
Coverity Inc, 2014, SOFTW TEST STAT AN T
[15]  
Coverity Inc, 2009, EFF MAN STAT AN VULN
[16]  
Coverity Inc, 2015, COV SCAN GITH INT
[17]  
Coverity Inc, 2015, IEEE 22 INT C SOFTW
[18]   A survey of automated techniques for formal software verification [J].
D'Silva, Vijay ;
Kroening, Daniel ;
Weissenbacher, Georg .
IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2008, 27 (07) :1165-1178
[19]   The repeatability of code defect classifications [J].
El Emam, K ;
Wieczorek, I .
NINTH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 1998, :322-333
[20]   A Comparative Study of Industrial Static Analysis Tools [J].
Emanuelsson, Par ;
Nilsson, Ulf .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2008, 217 (0C) :5-21