Merge "Ignore long-lines with urls when in text searching mode"

This commit is contained in:
Jenkins 2014-09-15 00:08:12 +00:00 committed by Gerrit Code Review
commit f2ec6f2550
1 changed files with 2 additions and 1 deletions

View File

@ -202,7 +202,8 @@ class CheckMaxLineLength(ContentCheck):
def _txt_checker(self, parsed_file):
for i, line in enumerate(parsed_file.lines_iter()):
if len(line) > self._max_line_length:
yield (i + 1, 'D001', 'Line too long')
if not utils.contains_url(line):
yield (i + 1, 'D001', 'Line too long')
def _rst_checker(self, parsed_file):
lines = list(parsed_file.lines_iter())