'Adds a violation to the summary details.
Arguments:
violation: The violation to add to the summary.'

def add_violation(self, violation):

    self.total_violations += 1
    self.totals_by_rule[violation.rule.rule_id] += 1
