Skip to content

Commit

Permalink
Merge pull request #4999 from backstage/jhaals/ignore-adopters
Browse files Browse the repository at this point in the history
Ignore vale check for ADOPTERS.md
  • Loading branch information
freben committed Mar 18, 2021
2 parents e1bd13d + 22416ce commit 8dd6d03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/check-docs-quality.js
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 8dd6d03

Please sign in to comment.