Skip to content

Commit

Permalink
Ignore vale check for ADOPTERS.md
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Haals <johan.haals@gmail.com>
  • Loading branch information
jhaals committed Mar 18, 2021
1 parent e1bd13d commit 22416ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/check-docs-quality.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 22416ce

Please sign in to comment.