servo: Merge #7310 - Mention max length in tidy check_length. Fixes #7309 (from A-deLuna:bug-7309); r=SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: a8c62f0f282321b4e2047c5143c7cbfc3282a09a
This commit is contained in:
OneKorg
2015-08-21 13:01:05 -06:00
parent 95cd807e33
commit 4f742268bd

View File

@@ -90,8 +90,9 @@ def check_license(file_name, contents):
def check_length(idx, line):
if len(line) >= 120:
yield (idx + 1, "(much) overlong line")
max_length = 120
if len(line) >= max_length:
yield (idx + 1, "Line is longer than %d characters" % max_length)
def check_whatwg_url(idx, line):