From 22416ced62e81545f67ff5a3d6f3636a86c3ce14 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 18 Mar 2021 09:48:11 +0100 Subject: [PATCH] Ignore vale check for ADOPTERS.md Signed-off-by: Johan Haals --- scripts/check-docs-quality.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/check-docs-quality.js b/scripts/check-docs-quality.js index 8e3266a8fa..f4d2857b5c 100755 --- a/scripts/check-docs-quality.js +++ b/scripts/check-docs-quality.js @@ -40,14 +40,13 @@ const getFilesToLint = () => { command = `git ls-files | .\\node_modules\\.bin\\shx grep ".md"`; } + const ignored = ['', 'ADOPTERS.md']; return execSync(command, { stdio: ['ignore', 'pipe', 'inherit'], }) .toString() .split('\n') - .filter(function (el) { - return el !== ''; - }); + .filter(el => !ignored.includes(el)); }; // Proceed with the script only if Vale linter is installed. Limit the friction and surprises caused by the script.