Skip to content

Commit

Permalink
Merge pull request #8002 from tk0miya/update_doc_linter
Browse files Browse the repository at this point in the history
doclinter: Allow a very long literal string
  • Loading branch information
tk0miya committed Jul 24, 2020
2 parents 95067c0 + 0c4edbd commit 5b096c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/doclinter.py
Expand Up @@ -50,6 +50,9 @@ def lint(path: str) -> int:
if re.match(r'^\s*\.\. ', line):
# ignore directives and hyperlink targets
pass
elif re.match(r'^\s*``[^`]+``$', line):
# ignore a very long literal string
pass
else:
print('%s:%d: the line is too long (%d > %d).' %
(path, i + 1, len(line), MAX_LINE_LENGTH))
Expand Down

0 comments on commit 5b096c4

Please sign in to comment.