From 714f302b929e1d1f8a0629bb5f36ba7ff86cfb1d Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 6 Apr 2021 09:52:02 +0900 Subject: [PATCH] Allow long comments containing a link --- ci/style.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/style.rs b/ci/style.rs index 4bd947bb..813102bc 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 ")