We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9eca21 commit 2b5ad25Copy full SHA for 2b5ad25
src/etc/tidy.py
@@ -31,7 +31,10 @@ def report_err(s):
31
if line.endswith(" \n") or line.endswith("\t\n"):
32
report_err("trailing whitespace")
33
line_len = len(line)-2 if autocrlf else len(line)-1
34
- if line_len > cols:
+
35
+ # Along long lines if they are part of an expected error message
36
+ # in a test, which is denoted with "//!":
37
+ if line_len > cols and "//!" not in line:
38
report_err("line longer than %d chars" % cols)
39
except UnicodeDecodeError, e:
40
report_err("UTF-8 decoding error " + str(e))
0 commit comments