mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #7310 - OneKorg:bug-7309, r=SimonSapin
Mention max length in tidy check_length. Fixes #7309 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7310) <!-- Reviewable:end -->
This commit is contained in:
commit
a8c62f0f28
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue