Skip to content

Commit

Permalink
ignore rust code when doing hygenie check
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Sep 20, 2022
1 parent 3762635 commit a9e38fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ yarn-error.log
vscode.lsif
vscode.db
/.profile-oss
/cli/target
3 changes: 2 additions & 1 deletion build/hygiene.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const vfs = require('vinyl-fs');
const path = require('path');
const fs = require('fs');
const pall = require('p-all');

const { all, copyrightFilter, unicodeFilter, indentationFilter, tsFormattingFilter, eslintFilter } = require('./filters');

const copyrightHeaderLines = [
Expand Down Expand Up @@ -291,7 +292,7 @@ if (require.main === module) {
.then(
(vinyls) =>
new Promise((c, e) =>
hygiene(es.readArray(vinyls))
hygiene(es.readArray(vinyls).pipe(filter(all)))
.on('end', () => c())
.on('error', e)
)
Expand Down

0 comments on commit a9e38fe

Please sign in to comment.