aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneKorg <tonydelun@gmail.com>2015-08-21 11:26:13 -0700
committerOneKorg <tonydelun@gmail.com>2015-08-21 11:26:13 -0700
commit07cde59535b1148c149cc026529d608ad60ed8d7 (patch)
treef9ff487436955c5675a206949b26716032e61f0a
parent9277c33b6374328252ea721f99a9485347e58ca0 (diff)
downloadservo-07cde59535b1148c149cc026529d608ad60ed8d7.tar.gz
servo-07cde59535b1148c149cc026529d608ad60ed8d7.zip
Mention max length in tidy check_length. Fixes #7309
-rw-r--r--python/tidy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/tidy.py b/python/tidy.py
index 9a51f821388..e897bb53f39 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -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):