@staticmethod<EOL><INDENT>def _apply_line_rules(lines, commit, rules, line_nr_start):<DEDENT>
all_violations = []<EOL>line_nr = line_nr_start<EOL>for line in lines:<EOL><INDENT>for rule in rules:<EOL><INDENT>violations = rule.validate(line, commit)<EOL>if violations:<EOL><INDENT>for violation in violations:<EOL><INDENT>violation.line_nr = line_nr<EOL>all_violations.append(violation)<EOL><DEDENT><DEDENT><DEDENT>line_nr += <NUM_LIT:1><EOL><DEDENT>return all_violations<EOL>
Iterates over the lines in a given list of lines and validates a given list of rules against each line