摘要
在评价软件代码质量时,直接对代码集合进行运算,易出现评价信息丢失或扭曲的问题,导致可评价的代码数量过少,针对这一问题,提出一种基于度量指标的软件代码质量评价方法。定义软件代码的评价标度集合,引入一个待集结的评价子集,制定代码度量评价指标获取原则,综合决策专家权重参数作为质量指标评价关键,确定代码质量评价指标,计算代码指标的代码质量综合评价值,完成对软件代码质量评价方法的研究。实验结果表明:设计的软件代码质量评价方法可全部评价实验获取的所有代码,代码质量评价适用性更强。
When evaluating the quality of software code,it is easy to lose or distort the evaluation information by directly calculating the code set,which leads to few code that can be evaluated by the evaluation method.This paper presents a method of software code quality evaluation based on metrics.This paper defines the evaluation scale set of software code,and introduces an evaluation subset to be assembled.Then,formulating the principle of obtaining evaluation index of code measurement,synthesizing the decision-making expert weight parameter as the key of quality index evaluation.Next,the evaluation index of code quality is determined,and the code quality comprehensive evaluation value of the code indexis evaluated,after which complete the research of the software code quality evaluation method.The experiment results show that the software code quality evaluation method designed in this paper can evaluate all the code obtained from the experiment,and the code quality evaluation is more applicable.
作者
罗欢
徐律冠
陈仁泽
LUO Huan;XU Lv-guan;CHEN Ren-ze(China Southern Power Grid Digital Grid Research Institute Co.,Ltd.,Guangzhou 510555,China)
出处
《信息技术》
2021年第9期121-125,131,共6页
Information Technology
关键词
度量指标
软件代码
评价子集
专家权重评价参数
metrics
software code
evaluation subset
expert weight evaluation parameters