summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-04-06 09:52:02 +0900
committerYuki Okushi <jtitor@2k36.org>2021-04-06 09:52:02 +0900
commit714f302b929e1d1f8a0629bb5f36ba7ff86cfb1d (patch)
tree12782e663fe2c778f736c1d9327c29bab38ed1a8 /ci
parent703924fad8ee3f7daa3510dbdd7adcc839dce421 (diff)
downloadrust-libc-714f302b929e1d1f8a0629bb5f36ba7ff86cfb1d.tar.gz
Allow long comments containing a link
Diffstat (limited to 'ci')
-rw-r--r--ci/style.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/style.rs b/ci/style.rs
index 4bd947bb13..813102bcac 100644
--- a/ci/style.rs
+++ b/ci/style.rs
@@ -122,7 +122,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
if line.contains("\t") {
err.error(path, i, "tab character");
}
- if line.len() > 80 {
+ if line.len() > 80 && !(line.contains("https://") || line.contains("http://")) {
err.error(path, i, "line longer than 80 chars");
}
if line.contains("#[cfg(") && line.contains(']') && !line.contains(" if ")