Skip to content

Commit

Permalink
ignore checking files that satrt with . in testsd
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharang committed Jul 22, 2024
1 parent 3833313 commit 1085803
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/js/file_presence_structure_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ findMissingIndexInDirs("./src/pages");
const fileNames = [];
const getFileNames = (filepath) => {
if (
!(filepath.endsWith("/_app.tsx") || filepath.endsWith("/_document.tsx") || filepath.startsWith("."))
!(filepath.endsWith("/_app.tsx") || filepath.endsWith("/_document.tsx") || filepath.toLowerCase().includes(".ds_store"))
) {
let filePathURL = filepath
.replace("src/pages", "")
Expand Down
2 changes: 1 addition & 1 deletion utils/js/h1_presence_format_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function walkDir(dir, callback) {
const stats = await fs.stat(filePath);
if (stats.isDirectory()) {
await walkDir(filePath, callback);
} else if (stats.isFile() && !filePath.startsWith(".")) {
} else if (stats.isFile() && !filePath.toLowerCase().includes(".ds_store")) {
await callback(filePath);
}
}));
Expand Down
2 changes: 1 addition & 1 deletion utils/js/validate_update_internal_links_userpass.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (fs.existsSync(manualLinkFile)) {
try {
let filepaths = [];
walkDir("./src/pages", (filepath) => {
if (!filepath.startsWith(".")) {
if (!filepath.toLowercase().includes(".ds_store")) {
filepaths.push(filepath)
}
});
Expand Down

0 comments on commit 1085803

Please sign in to comment.