软体缺陷指标
软体缺陷指标(Software Defect Indicator)是源代码中会出现的一些模式,和程序错误有强烈的相关性,程序错误是指程式码中有错误或是遗漏程式,会因此造成程式的动作异常。在检视计算机程序时,不一定每次都可以直接识别到程式的错误,但因为软体缺陷指标有固定的型式(有时也称为反面模式或代码异味),表示程式有可能有问题。
以下是一些软体缺陷指标的例子:
相关条目
编辑参考资料
编辑- ^ William T. Ward: "Software Defect Prevention Using McCabe's Complexity Metric", Hewlett-Packard Journal, April 1989, pp 64-69: Control-flow complexity has been correlated with low reliability and frequent errors.
- ^ David N. Card, Victor E. Church, and William W. Agresti: "An Empirical Study of Software Design Practices", IEEE Transactions on Software Engineering, SE-12, no. 2, February 1986, pp 264-71: 46 percent of routines with no unused variables had no errors compared to only 17 to 29 percent for those with one or more unreferenced variables.
- ^ Madeyski, Lech, and Marian Jureczko. “Which Process Metrics Can Significantly Improve Defect Prediction Models? An Empirical Study.” Software Quality Journal 23.3 (2015): 393–422. Web.