From 705d8f7a1c3dccaa4205a8c1aa353433320823bc Mon Sep 17 00:00:00 2001 From: Mathieu Rheaume Date: Sun, 20 Sep 2015 19:59:39 -0400 Subject: [PATCH] Raise max length error over 120 chars not at 120 chars. python/tidy.py --- python/tidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tidy.py b/python/tidy.py index 87e1cf142a7..eed16f41f15 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -76,7 +76,7 @@ def check_length(file_name, idx, line): if file_name.endswith(".lock"): raise StopIteration max_length = 120 - if len(line) >= max_length: + if len(line.rstrip('\n')) > max_length: yield (idx + 1, "Line is longer than %d characters" % max_length)