Fixes #5279: calculate compliance only one time for all rules
Trivial: indentation
Merge pull request #585 from fanf/bug_5279/all_rules_compliance_calculate_at_each_rule

Bug 5279/all rules compliance calculate at each rule