summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-09-08 11:38:04 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-09-08 11:38:32 -0700
commit06e610bde7991b0c3f0f45933a03d08acbb45407 (patch)
tree319096e968f220b914aa160975e6b5e46effaa37
parent89779ed115860d7f590448d80d61a7e45b74883e (diff)
Ignore long-lines with urls when in text searching mode
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Joshua Harlow <harlowja@yahoo-inc.com> Workflow+1: Joshua Harlow <harlowja@yahoo-inc.com> Submitted-by: Jenkins Submitted-at: Mon, 15 Sep 2014 00:08:12 +0000 Reviewed-on: https://review.openstack.org/119867 Project: stackforge/doc8 Branch: refs/heads/master
-rw-r--r--doc8/checks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc8/checks.py b/doc8/checks.py
index 074d35b..fc2e911 100644
--- a/doc8/checks.py
+++ b/doc8/checks.py
@@ -202,7 +202,8 @@ class CheckMaxLineLength(ContentCheck):
202 def _txt_checker(self, parsed_file): 202 def _txt_checker(self, parsed_file):
203 for i, line in enumerate(parsed_file.lines_iter()): 203 for i, line in enumerate(parsed_file.lines_iter()):
204 if len(line) > self._max_line_length: 204 if len(line) > self._max_line_length:
205 yield (i + 1, 'D001', 'Line too long') 205 if not utils.contains_url(line):
206 yield (i + 1, 'D001', 'Line too long')
206 207
207 def _rst_checker(self, parsed_file): 208 def _rst_checker(self, parsed_file):
208 lines = list(parsed_file.lines_iter()) 209 lines = list(parsed_file.lines_iter())