def eof_check()

in lean/scripts/lint_style.py [0:0]


def eof_check(lines, path):
    if not lines[-1].endswith("\n"):
        return [(ERR_EOF, len(lines), path)]
    return []