Global Metrics
path: .metrics.loc.sloc
old: 92.0
new: 107.0
path: .metrics.loc.lloc
old: 4.0
new: 11.0
path: .metrics.loc.cloc
old: 22.0
new: 63.0
path: .metrics.loc.ploc
old: 52.0
new: 28.0
path: .metrics.loc.blank
old: 18.0
new: 16.0
path: .metrics.halstead.N2
old: 62.0
new: 61.0
path: .metrics.halstead.estimated_program_length
old: 215.99328661116544
new: 118.76437056043838
path: .metrics.halstead.length
old: 152.0
new: 129.0
path: .metrics.halstead.vocabulary
old: 46.0
new: 30.0
path: .metrics.halstead.effort
old: 9186.008448331992
new: 11177.251133296784
path: .metrics.halstead.volume
old: 839.581417320666
new: 632.9888868334989
path: .metrics.halstead.n2
old: 34.0
new: 19.0
path: .metrics.halstead.N1
old: 90.0
new: 68.0
path: .metrics.halstead.level
old: 0.0913978494623656
new: 0.05663189269746646
path: .metrics.halstead.purity_ratio
old: 1.4210084645471408
new: 0.9206540353522356
path: .metrics.halstead.time
old: 510.3338026851107
new: 620.9583962942658
path: .metrics.halstead.bugs
old: 0.1462053637481334
new: 0.1666359689670475
path: .metrics.halstead.difficulty
old: 10.941176470588236
new: 17.657894736842106
path: .metrics.halstead.n1
old: 12.0
new: 11.0
path: .metrics.nargs.average
old: 0.3333333333333333
new: 2.0
path: .metrics.nargs.sum
old: 2.0
new: 8.0
path: .metrics.nom.total
old: 6.0
new: 4.0
path: .metrics.nom.functions
old: 6.0
new: 4.0
path: .metrics.cyclomatic.sum
old: 11.0
new: 7.0
path: .metrics.cyclomatic.average
old: 1.0
new: 1.4
path: .metrics.nexits.average
old: 0.16666666666666666
new: 0.0
path: .metrics.nexits.sum
old: 1.0
new: 0.0
path: .metrics.cognitive.average
old: 0.0
new: 0.5
path: .metrics.cognitive.sum
old: 0.0
new: 2.0
path: .metrics.mi.mi_visual_studio
old: 35.20814449485174
new: 35.17416256161622
path: .metrics.mi.mi_original
old: 60.20592708619647
new: 60.14781798036374
path: .metrics.mi.mi_sei
old: 46.635879674815754
new: 58.18169626078634
Spaces Data
Minimal test - lines (47, 63)
path: .spaces[0].metrics.nom.total
old: 6.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 6.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 42.0
new: 7.0
path: .spaces[0].metrics.loc.sloc
old: 71.0
new: 17.0
path: .spaces[0].metrics.loc.blank
old: 14.0
new: 3.0
path: .spaces[0].metrics.loc.cloc
old: 15.0
new: 7.0
path: .spaces[0].metrics.mi.mi_original
old: 65.14382347884475
new: 98.72906404455097
path: .spaces[0].metrics.mi.mi_sei
old: 51.970088759672265
new: 108.85215415074798
path: .spaces[0].metrics.mi.mi_visual_studio
old: 38.09580320400278
new: 57.7362947628953
path: .spaces[0].metrics.nargs.average
old: 0.3333333333333333
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 0.16666666666666666
new: 0.0
path: .spaces[0].metrics.nexits.sum
old: 1.0
new: 0.0
path: .spaces[0].metrics.halstead.bugs
old: 0.14564422396809665
new: 0.036960365915425855
path: .spaces[0].metrics.halstead.length
old: 144.0
new: 35.0
path: .spaces[0].metrics.halstead.n2
old: 27.0
new: 9.0
path: .spaces[0].metrics.halstead.vocabulary
old: 39.0
new: 18.0
path: .spaces[0].metrics.halstead.volume
old: 761.0979195161638
new: 145.94737505048093
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.1902882817157467
new: 1.6302471435989034
path: .spaces[0].metrics.halstead.n1
old: 12.0
new: 9.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 171.40151256706753
new: 57.05865002596162
path: .spaces[0].metrics.halstead.N1
old: 90.0
new: 19.0
path: .spaces[0].metrics.halstead.time
old: 507.3986130107759
new: 64.86550002243597
path: .spaces[0].metrics.halstead.difficulty
old: 12.0
new: 8.0
path: .spaces[0].metrics.halstead.N2
old: 54.0
new: 16.0
path: .spaces[0].metrics.halstead.level
old: 0.08333333333333333
new: 0.125
path: .spaces[0].metrics.halstead.effort
old: 9133.175034193966
new: 1167.5790004038474
path: .spaces[0].metrics.cognitive.average
old: 0.0
new: 1.0
path: .spaces[0].metrics.cognitive.sum
old: 0.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.sum
old: 10.0
new: 2.0
Code
void Test01_raw(nsINode* aDOMNode, nsString* aResult)
// m140, w34
{
/*
This test is designed to be more like a typical large function where,
because you are working with several resources, you don't just return
when one of them is |nullptr|. Similarly: |Test01_nsCOMPtr00|, and
|Test01_nsIPtr00|.
*/
nsINode* node = aDOMNode;
NS_IF_ADDREF(node);
if (node) node->GetNodeName(*aResult);
NS_IF_RELEASE(node);
}