From 4eef581817dc26e3952a18f26506f3e0f522062f Mon Sep 17 00:00:00 2001 From: steveklabnik Date: Wed, 15 Mar 2017 17:03:50 -0400 Subject: [PATCH] exempt hbs from linkchecker --- src/tools/linkchecker/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tools/linkchecker/main.rs b/src/tools/linkchecker/main.rs index ba5ca44526b..e83a1f8aea7 100644 --- a/src/tools/linkchecker/main.rs +++ b/src/tools/linkchecker/main.rs @@ -121,6 +121,12 @@ fn check(cache: &mut Cache, if file.extension().and_then(|s| s.to_str()) == Some("js") { return None; } + + // ignore handlebars files as they use {{}} to build links, we only + // want to test the generated files + if file.extension().and_then(|s| s.to_str()) == Some("hbs") { + return None; + } // Unfortunately we're not 100% full of valid links today to we need a few // whitelists to get this past `make check` today.