about summary refs log tree commit diff
path: root/src/tools/linkchecker
diff options
context:
space:
mode:
authorsteveklabnik <steve@steveklabnik.com>2017-03-15 17:03:50 -0400
committersteveklabnik <steve@steveklabnik.com>2017-03-20 10:10:16 -0400
commit4eef581817dc26e3952a18f26506f3e0f522062f (patch)
treef61458c9a0bdac5f859c228f6f5ca025246b525e /src/tools/linkchecker
parentd1d9626e7577546585f216f8ee11be824b374f78 (diff)
exempt hbs from linkchecker
Diffstat (limited to 'src/tools/linkchecker')
-rw-r--r--src/tools/linkchecker/main.rs6
1 files changed, 6 insertions, 0 deletions
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.