@staticmethod<EOL><INDENT>def _apply_commit_rules(rules, commit):<DEDENT>
all_violations = []<EOL>for rule in rules:<EOL><INDENT>violations = rule.validate(commit)<EOL>if violations:<EOL><INDENT>all_violations.extend(violations)<EOL><DEDENT><DEDENT>return all_violations<EOL>
Applies a set of rules against a given commit and gitcontext