<div dir="ltr"><div>I was looking at xccdf_item_get_default_score() function and I see that the score calculation is not a simple:</div><div>(no.of passed rules/total rules)</div><div><br></div><div>The way the score is calculated, it seems that groups with lesser rules have higher weight.</div><div><br></div><div>For example, in case 1 let's say there are 2 groups. Group A with 100 rules and Group B with 1 rule. Let's say a rule in Group A fails. Then, the score seems to be calculated as:<br></div><div>Score of Group A: (99*100)/100 = 99 ('99' is number of rules that passed and each rule is given a score of 100 when it passes)<br></div><div>Then, we calculate the score of Group B: 100*1 = 100</div><div>Final score = (99 + 100)/2 = 199/2</div><div><br></div><div>Now in case 2 let's say the rule in group 2 fail,</div><div>Group A score = (100*100)/100 = 100</div><div>Group B score = 0</div><div>Final score = (0+100)/2 = 50</div><div><br></div><div>Note how the final results are different even though the number of rules that failed are the same in both the cases. And rules have the same weight. <br></div><div><br></div><div>Is this intentional?</div><div><br></div><div>Thanks,</div><div>Ajay Nair<br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>-- Ajay Nair</div></div></div></div></div></div>