diff --git a/scripts/lint-style.py b/scripts/lint-style.py index b7fe40603202f..fc82ad3303e06 100755 --- a/scripts/lint-style.py +++ b/scripts/lint-style.py @@ -46,7 +46,6 @@ ERR_IBY = 11 # isolated by ERR_DOT = 12 # isolated or low focusing dot ERR_SEM = 13 # the substring " ;" -ERR_WIN = 14 # Windows line endings "\r\n" ERR_TWS = 15 # trailing whitespace ERR_CLN = 16 # line starts with a colon ERR_IND = 17 # second line not correctly indented @@ -160,9 +159,6 @@ def line_endings_check(lines, path): errors = [] newlines = [] for line_nr, line in lines: - if "\r\n" in line: - errors += [(ERR_WIN, line_nr, path)] - line = line.replace("\r\n", "\n") if line.endswith(" \n"): errors += [(ERR_TWS, line_nr, path)] line = line.rstrip() + "\n" @@ -385,8 +381,6 @@ def format_errors(errors): output_message(path, line_nr, "ERR_DOT", "Line is an isolated focusing dot or uses . instead of ยท") if errno == ERR_SEM: output_message(path, line_nr, "ERR_SEM", "Line contains a space before a semicolon") - if errno == ERR_WIN: - output_message(path, line_nr, "ERR_WIN", "Windows line endings (\\r\\n) detected") if errno == ERR_TWS: output_message(path, line_nr, "ERR_TWS", "Trailing whitespace detected on line") if errno == ERR_CLN: