def METHOD_NAME(fname: str, test_file: IO[str]) -> None:
    line = None
    for idx, line in enumerate(test_file):
        line_no = idx + 1
        if idx == 0 and len(line.strip()) == 0:
            errors.append((message_multi_bof, fname, line_no))
        if line.endswith(" \n") or line.endswith("\t\n"):
            errors.append((message_space, fname, line_no))
        if line.endswith("\r\n") or line.endswith("\r"):
            errors.append((message_carriage, fname, line_no))
        if use_tab_rule(fname) and tab_in_leading(line):
            errors.append((message_tabs, fname, line_no))
        #if len(line) > MAX_LINE_LENGTH:
        #    errors.append((message_too_long, fname, line_no))
    if line is not None:
        if idx > 0 and len(line.strip()) == 0:
            errors.append((message_multi_eof, fname, line_no))
        if not line.endswith('\n'):
            errors.append((message_eof, fname, line_no))