Skip to content

Commit

Permalink
πŸ— Omit files / dirs in .gitignore during invalid whitespace checks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimha authored Apr 21, 2021
1 parent efd8b56 commit cd33789
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-system/tasks/check-invalid-whitespaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ function runCheck(filesToCheck) {
* Checks multiple kinds of files for invalid whitespaces.
*/
function checkInvalidWhitespaces() {
const filesToCheck = getFilesToCheck(invalidWhitespaceGlobs, {dot: true});
const filesToCheck = getFilesToCheck(
invalidWhitespaceGlobs,
{dot: true},
'.gitignore'
);
if (filesToCheck.length == 0) {
return;
}
Expand Down

0 comments on commit cd33789

Please sign in to comment.