From 4d90dd47f141ec23c98842f26660d210b997d8bb Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Sat, 13 Aug 2016 14:53:30 -0500 Subject: [PATCH 1/2] Fail the tests if there are lint warnings --- script/test-prose | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/test-prose b/script/test-prose index 675296d2f15..53f43062337 100755 --- a/script/test-prose +++ b/script/test-prose @@ -68,4 +68,12 @@ async.map(ignore.filter(glob.sync("**/*.md")), function(file, callback) { }); }, function (err, results) { console.log(report(results)); + + var hasErrors = false; + + results.forEach(function(file) { + if(file.messages.length > 0) hasErrors = true; + }); + + if(hasErrors) process.exit(1); }); From 41ca8b612397da020d467468b322f0eed03877cd Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Sat, 13 Aug 2016 14:53:55 -0500 Subject: [PATCH 2/2] Disable remaining failing lint checks --- script/test-prose | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/test-prose b/script/test-prose index 53f43062337..5ac471f1f3b 100755 --- a/script/test-prose +++ b/script/test-prose @@ -36,6 +36,9 @@ var options = { // FIXME: Eventually remove these "maximum-heading-length": 80, + "no-literal-urls": false, + "no-inline-padding": false, + "no-missing-blank-lines": false, }, "readability": { "age": 18