Do Static Analysis Warnings Predict Fault-Prone Modules? Evidence from Open-Source Projects
Keywords:
static analysis warnings, fault-prone modules, defect prediction, predictive validity, calibration, open-source softwareAbstract
Static analysis warnings are widely used as early indicators of defect risk, yet their predictive value for fault-prone modules remains conditional rather than established. Warnings can reflect genuine latent faults, but they can also track module size, coding style, tool configuration, or development history. This article develops a predictive-validity framework for asking whether warning signals add information about fault-prone modules in open-source projects beyond established code and process covariates. The contribution is analytical and methodological: it specifies the unit of analysis, outcome construction from version-control and issue histories, warning aggregation, the prediction estimand, measurement-error correction, and decision-theoretic evaluation. A logistic risk model separates warning intensity from size and churn, while an attenuation relation shows why noisy warning counts can weaken estimated associations. Evaluation logic combines discrimination, calibration, and net utility, with explicit thresholds for acting on warnings under asymmetric costs. The analysis clarifies that predictive validity is not equivalent to causal effectiveness: warnings may forecast fault-prone modules without implying that warning removal alone reduces faults. It also identifies boundary conditions that shape open-source evidence, including tool version drift, warning-category heterogeneity, label noise from commit-to-issue linkage, and temporal distribution shift. The resulting framework supports more defensible claims about static analysis warnings and provides a basis for interpreting heterogeneous findings across open-source projects.
References
1. Johnson, B., Song, Y., Murphy-Hill, E., & Bowdler, R. (2013). Why don't software developers use static analysis tools to find bugs? In Proceedings of the 2013 International Conference on Software Engineering (pp. 672–681). IEEE Press.
2. Ayewah, N., Pugh, W., Morgenthaler, J. D., Penix, J., & Zhou, Y. (2008). Evaluating static analysis defect warnings on production software. In Proceedings of the 7th ACM SIGPLAN-SIGSOFT Workshop on Program Analysis for Software Tools and Engineering (pp. 1–8). ACM.
3. Heckman, S., & Williams, L. (2011). A systematic literature review of actionable alert identification techniques for automated static code analysis. Information and Software Technology, 53(4), 363–387.
4. Kim, S., & Ernst, M. D. (2007). Which warnings should I fix first? In Proceedings of the 6th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (pp. 45–54). ACM.
5. Zheng, J., Williams, L., Nagappan, N., Snipes, W., Hudepohl, J. P., & Vouk, M. A. (2006). On the value of static analysis for fault detection in software. IEEE Transactions on Software Engineering, 32(4), 240–253.
6. Ruthruff, J. R., Penix, J., Morgenthaler, J. D., Elbaum, S., & Rothermel, G. (2008). Predicting accurate and actionable static analysis warnings: An experimental approach. In Proceedings of the 30th International Conference on Software Engineering (pp. 341–350). ACM.
7. Kremenek, T., & Engler, D. (2003). Z-Ranking: Using statistical analysis to counter the impact of static analysis approximations. In Static Analysis: 10th International Symposium (pp. 295–315). Springer.
8. Nagappan, N., & Ball, T. (2005). Use of relative code churn measures to predict system defect density. In Proceedings of the 27th International Conference on Software Engineering (pp. 284–292). ACM.
9. Hassan, A. E. (2009). Predicting faults using the complexity of code changes. In Proceedings of the 31st International Conference on Software Engineering (pp. 78–88). IEEE.
10. Menzies, T., Greenwald, J., & Frank, A. (2007). Data mining static code attributes to learn defect predictors. IEEE Transactions on Software Engineering, 33(1), 2–13.
11. Lessmann, S., Baesens, B., Mues, C., & Pietsch, S. (2008). Benchmarking classification models for software defect prediction: A proposed framework and novel findings. IEEE Transactions on Software Engineering, 34(4), 485–496.
12. D'Ambros, M., Lanza, M., & Robbes, R. (2012). Evaluating defect prediction approaches: A benchmark and an extensive comparison. Empirical Software Engineering, 17(4–5), 531–577.
13. Hall, T., Beecham, S., Bowes, D., Gray, D., & Counsell, S. (2012). A systematic literature review on fault prediction performance in software engineering. IEEE Transactions on Software Engineering, 38(6), 1276–1304.
14. Arisholm, E., Briand, L. C., & Johannessen, E. B. (2010). A systematic and comprehensive investigation of methods to build and evaluate fault prediction models. Journal of Systems and Software, 83(1), 2–17.
15. Fenton, N. E., & Neil, M. (1999). A critique of software defect prediction models. IEEE Transactions on Software Engineering, 25(5), 675–689.
16. Sliwerski, J., Zimmermann, T., & Zeller, A. (2005). When do changes induce fixes? In Proceedings of the 2005 International Workshop on Mining Software Repositories (pp. 1–5). ACM.
17. Zimmermann, T., Premraj, R., & Zeller, A. (2007). Predicting defects for Eclipse. In Proceedings of the Third International Workshop on Predictor Models in Software Engineering (Article 9). IEEE Computer Society.
18. Hovemeyer, D., & Pugh, W. (2004). Finding bugs is easy. ACM SIGPLAN Notices, 39(12), 92–106.
Downloads
Published
Issue
Section
License
Copyright (c) 2021 Computer Science and Engineering Transactions

This work is licensed under a Creative Commons Attribution 4.0 International License.
