summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-09-15 00:08:12 +0000
committerGerrit Code Review <review@openstack.org>2014-09-15 00:08:13 +0000
commitf2ec6f2550c12800bcc43c94ff9f709c43fc2272 (patch)
treeb336f2cbfc3e50430c5ce736c796c3c3675de993
parent3f7c58cf5a3dc2c433c1b283661c27227b323338 (diff)
parent06e610bde7991b0c3f0f45933a03d08acbb45407 (diff)
Merge "Ignore long-lines with urls when in text searching mode"
-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())