Table 2.
Number | Attribute type | Quality metrics | Attribute definition |
---|---|---|---|
1 | McCabe's measure | loc | Line count of code |
2 | v(g) | Cyclomatic complexity | |
3 | ev(g) | Essential complexity | |
4 | iv(g) | Design complexity | |
| |||
5 | Basic Halstead measures | loCode | Line count |
6 | loComment | Count of lines of comments | |
7 | loBlank | Count of blank lines | |
8 | loCodeAndComment | Count of code and comment lines | |
9 | uniqOp | Unique operators | |
10 | uniqOpnd | Unique operands | |
11 | total_Op | Total operators | |
12 | total_Opnd | Total operands | |
13 | branchCount | Branch count of the flow graphs | |
| |||
14 | Derived Halstead measures | n | Total operators + operands |
15 | v | Volume | |
16 | l | Program length | |
17 | d | Difficulty | |
18 | i | Intelligence | |
19 | e | Effort | |
20 | b | Estimate of the effort | |
21 | t | Time estimator | |
| |||
22 | Output defect measure | Defects | {false, true}: module has/does not have one or more reported defects |