<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_lines(self, lines, i):
 """ check lines have less than a maximum number of characters. It ignored lines with long URLs. """

    maxChars = self.config.max_line_length
    for line in lines.splitlines():
        if len(line) > maxChars:
            if 'http://' in line or 'https://' in line:
                continue
            self.add_message('C0301', line=i, args=(len(line), maxChars))
        i += 1