]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #39790 - zackw:tidy-linelen-exempt-urls, r=alexcrichton
authorCorey Farwell <coreyf@rwell.org>
Tue, 14 Feb 2017 15:07:36 +0000 (10:07 -0500)
committerGitHub <noreply@github.com>
Tue, 14 Feb 2017 15:07:36 +0000 (10:07 -0500)
tidy: exempt URLs from the line length restriction

The length of a URL is usually not under our control, and Markdown
provides no way to split a URL in the middle.  Therefore, comment
lines consisting _solely_ of a URL (possibly with a Markdown link
label in front) should be exempt from the line-length restriction.

Inline hyperlink destinations ( `[foo](http://...)` notation ) are
_not_ exempt, because it is my arrogant opinion that long lines of
that type make the source text illegible.

The patch adds dependencies on the `regex` and `lazy_static` crates
to the tidy utility.  This _appears_ to Just Work, but if you would
rather not have that dependency I am willing to provide a hand-written
parser instead.


Trivial merge